|
Torque2D Reference
|
#include <b2GearJoint.h>
Inheritance diagram for b2GearJointDef:Public Member Functions | |
| b2GearJointDef () | |
Public Member Functions inherited from b2JointDef | |
| b2JointDef () | |
Public Attributes | |
| b2Joint * | joint1 |
| The first revolute/prismatic joint attached to the gear joint. More... | |
| b2Joint * | joint2 |
| The second revolute/prismatic joint attached to the gear joint. More... | |
| float32 | ratio |
Public Attributes inherited from b2JointDef | |
| 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... | |
| 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... | |
Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work).
|
inline |
| b2Joint* joint1 |
The first revolute/prismatic joint attached to the gear joint.
| b2Joint* joint2 |
The second revolute/prismatic joint attached to the gear joint.
| float32 ratio |
The gear ratio.
1.8.10