#include <b2GearJoint.h>
Inherits b2JointDef.
Public Attributes | |
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 |
Public Attributes inherited from b2JointDef | |
b2JointType | type |
The joint type is set automatically for concrete joint types. | |
void * | userData |
Use this to attach application specific data to your joints. | |
b2Body * | bodyA |
The first attached body. | |
b2Body * | bodyB |
The second attached body. | |
bool | collideConnected |
Set this flag to true if the attached bodies should collide. | |
Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work).
float32 b2GearJointDef::ratio |
The gear ratio.