CLASS v1.8.0

physics::RigidBody

kn::physics::RigidBody

Inherits kn::physics::Body

Declared in kraken/physics/bodies/RigidBody.hpp

Reference

C++ API

RigidBody

function
RigidBody(World &world)

No description in the source header.

~RigidBody

function
~RigidBody()=default

No description in the source header.

void setLinearVelocity(const Vec2 &velocity)

No description in the source header.

Vec2 getLinearVelocity() const

No description in the source header.

void setAngularVelocity(float velocity)

No description in the source header.

float getAngularVelocity() const

No description in the source header.

void setLinearDamping(float damping)

No description in the source header.

float getLinearDamping() const

No description in the source header.

void setAngularDamping(float damping)

No description in the source header.

float getAngularDamping() const

No description in the source header.

void setFixedRotation(bool fixed)

No description in the source header.

bool isFixedRotation() const

No description in the source header.

isAwake

function
bool isAwake() const

No description in the source header.

wake

function
void wake()

No description in the source header.

applyForce

function
void applyForce(const Vec2 &force, const Vec2 &point, bool wake=true)

No description in the source header.

void applyForceToCenter(const Vec2 &force, bool wake=true)

No description in the source header.

applyTorque

function
void applyTorque(float torque, bool wake=true)

No description in the source header.

void applyLinearImpulse(const Vec2 &impulse, const Vec2 &point, bool wake=true)

No description in the source header.

void applyLinearImpulseToCenter(const Vec2 &impulse, bool wake=true)

No description in the source header.

void applyAngularImpulse(float impulse, bool wake=true)

No description in the source header.

getMass

function
float getMass() const

No description in the source header.

setBullet

function
void setBullet(bool isBullet)

No description in the source header.

isBullet

function
bool isBullet() const

No description in the source header.

Find your next step

Start typing to search the manual.