b2DistanceJoint Class Reference
#include <b2DistanceJoint.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
Member Function Documentation
b2Vec2 b2DistanceJoint::GetAnchorA |
( |
|
) |
const [virtual] |
Get the anchor point on bodyA in world coordinates.
Implements b2Joint.
b2Vec2 b2DistanceJoint::GetAnchorB |
( |
|
) |
const [virtual] |
Get the anchor point on bodyB in world coordinates.
Implements b2Joint.
float32 b2DistanceJoint::GetDampingRatio |
( |
|
) |
const [inline] |
float32 b2DistanceJoint::GetFrequency |
( |
|
) |
const [inline] |
float32 b2DistanceJoint::GetLength |
( |
|
) |
const [inline] |
b2Vec2 b2DistanceJoint::GetReactionForce |
( |
float32 |
inv_dt |
) |
const [virtual] |
Get the reaction force on body2 at the joint anchor in Newtons.
Implements b2Joint.
float32 b2DistanceJoint::GetReactionTorque |
( |
float32 |
inv_dt |
) |
const [virtual] |
Get the reaction torque on body2 in N*m.
Implements b2Joint.
void b2DistanceJoint::InitVelocityConstraints |
( |
const b2TimeStep & |
step |
) |
[protected, virtual] |
void b2DistanceJoint::SetDampingRatio |
( |
float32 |
ratio |
) |
[inline] |
void b2DistanceJoint::SetFrequency |
( |
float32 |
hz |
) |
[inline] |
void b2DistanceJoint::SetLength |
( |
float32 |
length |
) |
[inline] |
Set/get the natural length. Manipulating the length can lead to non-physical behavior when the frequency is zero.
bool b2DistanceJoint::SolvePositionConstraints |
( |
float32 |
baumgarte |
) |
[protected, virtual] |
void b2DistanceJoint::SolveVelocityConstraints |
( |
const b2TimeStep & |
step |
) |
[protected, virtual] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: