BodyDescription class. More...
#include <body_description.h>
Public Member Functions | |
Construction | |
BodyDescription () | |
Constructs a null instance. More... | |
BodyDescription (const PhysicsWorld &pw) | |
Constructs a BodyDescription. More... | |
BodyDescription (const PhysicsContext &pc) | |
Constructs a BodyDescription. More... | |
BodyDescription (const PhysicsContext &pc, const std::string &resource_id, const XMLResourceDocument &resources) | |
Constructs a BodyDescription. More... | |
BodyDescription (const BodyDescription ©) | |
Constructs a BodyDescription. More... | |
virtual | ~BodyDescription () |
Attributes | |
bool | is_null () const |
Returns true if this object is invalid. More... | |
void | throw_if_null () const |
Throw an exception if this object is invalid. More... | |
Operations | |
BodyDescription & | operator= (const BodyDescription ©) |
Copy assignment operator. More... | |
void | set_type (const BodyType type) |
void | set_position (const Vec2f &position) |
void | set_position (const Pointf &position) |
void | set_position (const int x, const int y) |
void | set_position (const float x, const float y) |
void | set_angle (const Angle &angle) |
Set the Physics World angle of the body. More... | |
void | set_linear_velocity (const Vec2f &velocity) |
Set the linear velocity of the body's origin in Physics World co-ordinates. More... | |
void | set_angular_velocity (const Angle &velocity) |
Set the angular velocity of the body. More... | |
void | set_linear_damping (const float damping) |
void | set_angular_damping (const float damping) |
void | allow_sleep (const bool value=true) |
void | set_awake (const bool value=true) |
Should body initially be awake or sleep? More... | |
void | set_fixed_rotation (const bool value) |
Should this body be prevented from rotating? Useful for characters. More... | |
void | set_as_bullet (const bool value=true) |
Set the body to act like a bullet. Gives more accuracy for fast moving bodies. More... | |
void | set_active (const bool value=true) |
Does the body start out active? More... | |
void | set_gravity_scale (const float scale) |
Scale the gravity applied to this body. More... | |
Friends | |
class | Body |
class | Body_Impl |
BodyDescription class.