Motor joint definition. More...
#include <b2MotorJoint.h>
Public Member Functions | |
b2MotorJointDef () | |
void | Initialize (b2Body *bodyA, b2Body *bodyB) |
Initialize the bodies and offsets using the current transforms. More... | |
Public Member Functions inherited from b2JointDef | |
b2JointDef () | |
Public Attributes | |
float32 | angularOffset |
The bodyB angle minus bodyA angle in radians. More... | |
float32 | correctionFactor |
Position correction factor in the range [0,1]. More... | |
b2Vec2 | linearOffset |
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters. More... | |
float32 | maxForce |
The maximum motor force in N. More... | |
float32 | maxTorque |
The maximum motor 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... | |
Motor joint definition.
Definition at line 25 of file b2MotorJoint.h.
|
inline |
Definition at line 27 of file b2MotorJoint.h.
Initialize the bodies and offsets using the current transforms.
Definition at line 35 of file b2MotorJoint.cpp.
float32 b2MotorJointDef::angularOffset |
The bodyB angle minus bodyA angle in radians.
Definition at line 44 of file b2MotorJoint.h.
float32 b2MotorJointDef::correctionFactor |
Position correction factor in the range [0,1].
Definition at line 53 of file b2MotorJoint.h.
b2Vec2 b2MotorJointDef::linearOffset |
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
Definition at line 41 of file b2MotorJoint.h.
float32 b2MotorJointDef::maxForce |
The maximum motor force in N.
Definition at line 47 of file b2MotorJoint.h.
float32 b2MotorJointDef::maxTorque |
The maximum motor torque in N-m.
Definition at line 50 of file b2MotorJoint.h.