Box2D 2.4.1
A 2D physics engine for games
b2GearJointDef Struct Reference

#include <b2_gear_joint.h>

Inheritance diagram for b2GearJointDef:
b2JointDef

Public Attributes

b2Jointjoint1
 The first revolute/prismatic joint attached to the gear joint.
 
b2Jointjoint2
 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.
 
b2BodybodyA
 The first attached body.
 
b2BodybodyB
 The second attached body.
 
bool collideConnected
 Set this flag to true if the attached bodies should collide.
 

Detailed Description

Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work).

Warning
bodyB on the input joints must both be dynamic

Member Data Documentation

◆ ratio

float b2GearJointDef::ratio

The gear ratio.

See also
b2GearJoint for explanation.

The documentation for this struct was generated from the following file: