b2FrictionJoint Class Reference
#include <b2FrictionJoint.h>
List of all members.
Detailed Description
Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction.
Constructor & Destructor Documentation
Member Function Documentation
b2Vec2 b2FrictionJoint::GetAnchorA |
( |
|
) |
const [virtual] |
Get the anchor point on bodyA in world coordinates.
Implements b2Joint.
b2Vec2 b2FrictionJoint::GetAnchorB |
( |
|
) |
const [virtual] |
Get the anchor point on bodyB in world coordinates.
Implements b2Joint.
float32 b2FrictionJoint::GetMaxForce |
( |
|
) |
const |
Get the maximum friction force in N.
float32 b2FrictionJoint::GetMaxTorque |
( |
|
) |
const |
Get the maximum friction torque in N*m.
b2Vec2 b2FrictionJoint::GetReactionForce |
( |
float32 |
inv_dt |
) |
const [virtual] |
Get the reaction force on body2 at the joint anchor in Newtons.
Implements b2Joint.
float32 b2FrictionJoint::GetReactionTorque |
( |
float32 |
inv_dt |
) |
const [virtual] |
Get the reaction torque on body2 in N*m.
Implements b2Joint.
void b2FrictionJoint::InitVelocityConstraints |
( |
const b2TimeStep & |
step |
) |
[protected, virtual] |
void b2FrictionJoint::SetMaxForce |
( |
float32 |
force |
) |
|
Set the maximum friction force in N.
void b2FrictionJoint::SetMaxTorque |
( |
float32 |
torque |
) |
|
Set the maximum friction torque in N*m.
bool b2FrictionJoint::SolvePositionConstraints |
( |
float32 |
baumgarte |
) |
[protected, virtual] |
void b2FrictionJoint::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: