| Box2D 2.2.1 A 2D Physics Engine for Games

- Main Page
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Attributes
b2GearJointDef Struct Reference

`#include <b2GearJoint.h>`

Inheritance diagram for b2GearJointDef:

List of all members.

## 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

## Detailed Description

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

## Member Data Documentation

float32 b2GearJointDef::ratio

The gear ratio.

See also:
  b2GearJoint for explanation.

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

- b2GearJoint.h

All Classes Files Functions Variables Enumerations Enumerator Defines