| Linderdaum Engine: Box2DBody Class Reference | ![]() |
Serializable wrapper for the Box2D rigid body. More...
#include <BoxScene.h>
Public Member Functions | |
| Box2DBody () | |
| virtual | ~Box2DBody () |
| Body * | GetBody () const |
| void | SetPosition (const vec2 &Pos) |
| vec2 | GetPosition () const |
| void | SetAngle (float A) |
| float | GetAngle () const |
| void | SetVelocity (const vec2 &Vel) |
| vec2 | GetVelocity () const |
| void | SetAngVelocity (float Vel) |
| float | GetAngVelocity () const |
| void | SetForce (const vec2 &F) |
| vec2 | GetForce () const |
| void | SetTorque (float T) |
| float | GetTorque () const |
| float | GetFriction () const |
| void | SetFriction (float f) |
| float | GetMass () const |
| void | SetMass (float m) |
| vec2 | GetSize () const |
| void | SetSize (const vec2 &Sz) |
| float | GetI () const |
Public Attributes | |
| vec4 | FColor |
Private Attributes | |
| Body * | FBody |
| Box2D handle. | |
Serializable wrapper for the Box2D rigid body.
Contains a handle to Box2D object
| Box2DBody::Box2DBody | ( | ) | [inline] |
| virtual Box2DBody::~Box2DBody | ( | ) | [inline, virtual] |
| float Box2DBody::GetAngle | ( | ) | const [inline] |
| float Box2DBody::GetAngVelocity | ( | ) | const [inline] |
| Body* Box2DBody::GetBody | ( | ) | const [inline] |
| vec2 Box2DBody::GetForce | ( | ) | const [inline] |
| float Box2DBody::GetFriction | ( | ) | const [inline] |
| float Box2DBody::GetI | ( | ) | const [inline] |
| float Box2DBody::GetMass | ( | ) | const [inline] |
| vec2 Box2DBody::GetPosition | ( | ) | const [inline] |
| vec2 Box2DBody::GetSize | ( | ) | const [inline] |
| float Box2DBody::GetTorque | ( | ) | const [inline] |
| vec2 Box2DBody::GetVelocity | ( | ) | const [inline] |
| void Box2DBody::SetAngle | ( | float | A | ) | [inline] |
| void Box2DBody::SetAngVelocity | ( | float | Vel | ) | [inline] |
| void Box2DBody::SetForce | ( | const vec2 & | F | ) | [inline] |
| void Box2DBody::SetFriction | ( | float | f | ) | [inline] |
| void Box2DBody::SetMass | ( | float | m | ) | [inline] |
| void Box2DBody::SetPosition | ( | const vec2 & | Pos | ) | [inline] |
| void Box2DBody::SetSize | ( | const vec2 & | Sz | ) | [inline] |
| void Box2DBody::SetTorque | ( | float | T | ) | [inline] |
| void Box2DBody::SetVelocity | ( | const vec2 & | Vel | ) | [inline] |
Body* Box2DBody::FBody [private] |
Box2D handle.
Property(Name=Friction, Type=float, Getter=GetFriction, Setter=SetFriction) Property(Name=Mass, Type=float, Getter=GetMass, Setter=SetMass) Property(Name=Size, Type=vec2, Getter=GetSize, Setter=SetSize) Property(Name=Angle, Type=float, Getter=GetAngle, Setter=SetAngle) Property(Name=Position, Type=vec2, Getter=GetPosition, Setter=SetPosition) Property(Name=AngVelocity, Type=float, Getter=GetAngVelocity, Setter=SetAngVelocity) Property(Name=Velocity, Type=vec2, Getter=GetVelocity, Setter=SetVelocity) Property(Name=Torque, Type=float, Getter=GetTorque, Setter=SetTorque) Property(Name=Force, Type=vec2, Getter=GetForce, Setter=SetForce) Property(Name=Color, Type=vec4, FieldName=FColor)