|
b2Vec2 | GetAnchorA () const override |
| Get the anchor point on bodyA in world coordinates.
|
|
b2Vec2 | GetAnchorB () const override |
| Get the anchor point on bodyB in world coordinates.
|
|
b2Vec2 | GetReactionForce (float inv_dt) const override |
|
float | GetReactionTorque (float inv_dt) const override |
|
const b2Vec2 & | GetLocalAnchorA () const |
| The local anchor point relative to bodyA's origin.
|
|
const b2Vec2 & | GetLocalAnchorB () const |
| The local anchor point relative to bodyB's origin.
|
|
void | SetLength (float length) |
|
float | GetLength () const |
|
void | SetStiffness (float stiffness) |
| Set/get the linear stiffness in N/m.
|
|
float | GetStiffness () const |
|
void | SetDamping (float damping) |
| Set/get linear damping in N*s/m.
|
|
float | GetDamping () const |
|
void | Dump () override |
| Dump joint to dmLog.
|
|
b2JointType | GetType () const |
| Get the type of the concrete joint.
|
|
b2Body * | GetBodyA () |
| Get the first body attached to this joint.
|
|
b2Body * | GetBodyB () |
| Get the second body attached to this joint.
|
|
b2Joint * | GetNext () |
| Get the next joint the world joint list.
|
|
const b2Joint * | GetNext () const |
|
void * | GetUserData () const |
| Get the user data pointer.
|
|
void | SetUserData (void *data) |
| Set the user data pointer.
|
|
bool | IsEnabled () const |
| Short-cut function to determine if either body is enabled.
|
|
bool | GetCollideConnected () const |
|
virtual void | ShiftOrigin (const b2Vec2 &newOrigin) |
| Shift the origin for any points stored in world coordinates.
|
|
virtual void | Draw (b2Draw *draw) const |
| Debug draw this joint.
|
|
A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.