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

#include <b2_gear_joint.h>

Inheritance diagram for b2GearJointDef:

Public Attributes

 The first revolute/prismatic joint attached to the gear joint.
 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.
 The first attached body.
 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).

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: