#include <b2Body.h>
Public Member Functions | |
b2BodyDef () | |
This constructor sets the body definition default values. More... | |
Public Attributes | |
bool | active |
Does this body start out active? More... | |
bool | allowSleep |
float32 | angle |
The world angle of the body in radians. More... | |
float32 | angularDamping |
float32 | angularVelocity |
The angular velocity of the body. More... | |
bool | awake |
Is this body initially awake or sleeping? More... | |
bool | bullet |
bool | fixedRotation |
Should this body be prevented from rotating? Useful for characters. More... | |
float32 | gravityScale |
Scale the gravity applied to this body. More... | |
float32 | linearDamping |
b2Vec2 | linearVelocity |
The linear velocity of the body's origin in world co-ordinates. More... | |
b2Vec2 | position |
b2BodyType | type |
void * | userData |
Use this to store application specific body data. More... | |
A body definition holds all the data needed to construct a rigid body. You can safely re-use body definitions. Shapes are added to a body after construction.
|
inline |
bool b2BodyDef::allowSleep |
float32 b2BodyDef::angle |
float32 b2BodyDef::angularDamping |
float32 b2BodyDef::angularVelocity |
bool b2BodyDef::awake |
bool b2BodyDef::bullet |
Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies.
bool b2BodyDef::fixedRotation |
float32 b2BodyDef::gravityScale |
float32 b2BodyDef::linearDamping |
b2Vec2 b2BodyDef::linearVelocity |
b2Vec2 b2BodyDef::position |
b2BodyType b2BodyDef::type |
void* b2BodyDef::userData |