physics::RigidBody
kn::physics::RigidBody Inherits kn::physics::Body
Declared in kraken/physics/bodies/RigidBody.hpp
At a glance
23 membersRigidBodyfunction~RigidBodyfunctionsetLinearVelocityfunctiongetLinearVelocityfunctionsetAngularVelocityfunctiongetAngularVelocityfunctionsetLinearDampingfunctiongetLinearDampingfunctionsetAngularDampingfunctiongetAngularDampingfunctionsetFixedRotationfunctionisFixedRotationfunctionisAwakefunctionwakefunctionapplyForcefunctionapplyForceToCenterfunctionapplyTorquefunctionapplyLinearImpulsefunctionapplyLinearImpulseToCenterfunctionapplyAngularImpulsefunctiongetMassfunctionsetBulletfunctionisBulletfunctionReference
C++ APIRigidBody
functionNo description in the source header.
~RigidBody
function~RigidBody()=defaultNo description in the source header.
setLinearVelocity
functionvoid setLinearVelocity(const Vec2 &velocity)No description in the source header.
getLinearVelocity
functionVec2 getLinearVelocity() constNo description in the source header.
setAngularVelocity
functionvoid setAngularVelocity(float velocity)No description in the source header.
getAngularVelocity
functionfloat getAngularVelocity() constNo description in the source header.
setLinearDamping
functionvoid setLinearDamping(float damping)No description in the source header.
getLinearDamping
functionfloat getLinearDamping() constNo description in the source header.
setAngularDamping
functionvoid setAngularDamping(float damping)No description in the source header.
getAngularDamping
functionfloat getAngularDamping() constNo description in the source header.
setFixedRotation
functionvoid setFixedRotation(bool fixed)No description in the source header.
isFixedRotation
functionbool isFixedRotation() constNo description in the source header.
isAwake
functionbool isAwake() constNo description in the source header.
wake
functionvoid wake()No description in the source header.
applyForce
functionNo description in the source header.
applyForceToCenter
functionvoid applyForceToCenter(const Vec2 &force, bool wake=true)No description in the source header.
applyTorque
functionvoid applyTorque(float torque, bool wake=true)No description in the source header.
applyLinearImpulse
functionNo description in the source header.
applyLinearImpulseToCenter
functionvoid applyLinearImpulseToCenter(const Vec2 &impulse, bool wake=true)No description in the source header.
applyAngularImpulse
functionvoid applyAngularImpulse(float impulse, bool wake=true)No description in the source header.
getMass
functionfloat getMass() constNo description in the source header.
setBullet
functionvoid setBullet(bool isBullet)No description in the source header.
isBullet
functionbool isBullet() constNo description in the source header.