#include <b2Body.h>
Public Member Functions | |
b2BodyDef () | |
This constructor sets the body definition default values. | |
Public Attributes | |
bool | active |
Does this body start out active? | |
bool | allowSleep |
float32 | angle |
The world angle of the body in radians. | |
float32 | angularDamping |
float32 | angularVelocity |
The angular velocity of the body. | |
bool | awake |
Is this body initially awake or sleeping? | |
bool | bullet |
bool | fixedRotation |
Should this body be prevented from rotating? Useful for characters. | |
float32 | gravityScale |
Scale the gravity applied to this body. | |
float32 | linearDamping |
b2Vec2 | linearVelocity |
The linear velocity of the body's origin in world co-ordinates. | |
b2Vec2 | position |
b2BodyType | type |
void * | userData |
Use this to store application specific body data. |
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.
b2BodyDef::b2BodyDef | ( | ) | [inline] |
bool b2BodyDef::active |
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.
void* b2BodyDef::userData |