Friction joint definition. More...
#include <b2FrictionJoint.h>
Public Member Functions | |
b2FrictionJointDef () | |
void | Initialize (b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor) |
Public Member Functions inherited from b2JointDef | |
b2JointDef () | |
Public Attributes | |
b2Vec2 | localAnchorA |
The local anchor point relative to bodyA's origin. More... | |
b2Vec2 | localAnchorB |
The local anchor point relative to bodyB's origin. More... | |
float32 | maxForce |
The maximum friction force in N. More... | |
float32 | maxTorque |
The maximum friction torque in N-m. More... | |
Public Attributes inherited from b2JointDef | |
b2Body * | bodyA |
The first attached body. More... | |
b2Body * | bodyB |
The second attached body. More... | |
bool | collideConnected |
Set this flag to true if the attached bodies should collide. More... | |
b2JointType | type |
The joint type is set automatically for concrete joint types. More... | |
void * | userData |
Use this to attach application specific data to your joints. More... | |
Friction joint definition.
Definition at line 25 of file b2FrictionJoint.h.
|
inline |
Definition at line 27 of file b2FrictionJoint.h.
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
Definition at line 35 of file b2FrictionJoint.cpp.
b2Vec2 b2FrictionJointDef::localAnchorA |
The local anchor point relative to bodyA's origin.
Definition at line 41 of file b2FrictionJoint.h.
b2Vec2 b2FrictionJointDef::localAnchorB |
The local anchor point relative to bodyB's origin.
Definition at line 44 of file b2FrictionJoint.h.
float32 b2FrictionJointDef::maxForce |
The maximum friction force in N.
Definition at line 47 of file b2FrictionJoint.h.
float32 b2FrictionJointDef::maxTorque |
The maximum friction torque in N-m.
Definition at line 50 of file b2FrictionJoint.h.