Entity * entity_
The entity the body belongs to.
Definition: body.h:63
const std::string & GetName() const
Definition: body.cpp:85
Body(b2World *physics_world, Entity *entity, const std::string &name, const Color &color, const Pose &pose, b2BodyType body_type, const YAML::Node &properties, double linear_damping=0, double angular_damping=0)
constructor for body, takes in all the required parameters
Definition: body.cpp:52
void SetColor(const Color &color)
Set of the color of the body.
Definition: body.cpp:91
std::string name_
name of the body, unique within a model
Definition: body.h:64
int GetFixturesCount() const
Count the number of fixtures.
Definition: body.cpp:74
b2Body * GetPhysicsBody()
Get the Box2D body, use this to manipulate the body in physics through the Box2D methods.
Definition: body.cpp:87
const Color & GetColor() const
Definition: body.cpp:89
void DebugOutput() const
logs the debugging information for the body
Definition: body.cpp:93
YAML::Node properties_
Properties document for plugins to use.
Definition: body.h:67