#include <b2_wheel_joint.h>

Public Member Functions | |
| b2WheelJointDef () | |
| void | Initialize (b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor, const b2Vec2 &axis) |
Public Member Functions inherited from b2JointDef | |
| b2JointDef () | |
Public Attributes | |
| float | damping |
| Suspension damping. Typically in units of N*s/m. More... | |
| bool | enableLimit |
| Enable/disable the joint limit. More... | |
| bool | enableMotor |
| Enable/disable the joint motor. More... | |
| b2Vec2 | localAnchorA |
| The local anchor point relative to bodyA's origin. More... | |
| b2Vec2 | localAnchorB |
| The local anchor point relative to bodyB's origin. More... | |
| b2Vec2 | localAxisA |
| The local translation axis in bodyA. More... | |
| float | lowerTranslation |
| The lower translation limit, usually in meters. More... | |
| float | maxMotorTorque |
| The maximum motor torque, usually in N-m. More... | |
| float | motorSpeed |
| The desired motor speed in radians per second. More... | |
| float | stiffness |
| Suspension stiffness. Typically in units N/m. More... | |
| float | upperTranslation |
| The upper translation limit, usually in meters. 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... | |
| b2JointUserData | userData |
| Use this to attach application specific data to your joints. More... | |
Wheel joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.
Definition at line 35 of file b2_wheel_joint.h.
|
inline |
Definition at line 37 of file b2_wheel_joint.h.
| void b2WheelJointDef::Initialize | ( | b2Body * | bodyA, |
| b2Body * | bodyB, | ||
| const b2Vec2 & | anchor, | ||
| const b2Vec2 & | axis | ||
| ) |
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
Definition at line 44 of file b2_wheel_joint.cpp.
| float b2WheelJointDef::damping |
Suspension damping. Typically in units of N*s/m.
Definition at line 88 of file b2_wheel_joint.h.
| bool b2WheelJointDef::enableLimit |
Enable/disable the joint limit.
Definition at line 67 of file b2_wheel_joint.h.
| bool b2WheelJointDef::enableMotor |
Enable/disable the joint motor.
Definition at line 76 of file b2_wheel_joint.h.
| b2Vec2 b2WheelJointDef::localAnchorA |
The local anchor point relative to bodyA's origin.
Definition at line 58 of file b2_wheel_joint.h.
| b2Vec2 b2WheelJointDef::localAnchorB |
The local anchor point relative to bodyB's origin.
Definition at line 61 of file b2_wheel_joint.h.
| b2Vec2 b2WheelJointDef::localAxisA |
The local translation axis in bodyA.
Definition at line 64 of file b2_wheel_joint.h.
| float b2WheelJointDef::lowerTranslation |
The lower translation limit, usually in meters.
Definition at line 70 of file b2_wheel_joint.h.
| float b2WheelJointDef::maxMotorTorque |
The maximum motor torque, usually in N-m.
Definition at line 79 of file b2_wheel_joint.h.
| float b2WheelJointDef::motorSpeed |
The desired motor speed in radians per second.
Definition at line 82 of file b2_wheel_joint.h.
| float b2WheelJointDef::stiffness |
Suspension stiffness. Typically in units N/m.
Definition at line 85 of file b2_wheel_joint.h.
| float b2WheelJointDef::upperTranslation |
The upper translation limit, usually in meters.
Definition at line 73 of file b2_wheel_joint.h.