Box2D 2.4.1
A 2D physics engine for games
|
#include <b2_gear_joint.h>
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. | |
float | ratio |
Public Attributes inherited from b2JointDef | |
b2JointType | type |
The joint type is set automatically for concrete joint types. | |
b2JointUserData | 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).
float b2GearJointDef::ratio |
The gear ratio.