Box2D: b2GearJointDef Struct Reference

| Box2D 2.4.1 A 2D physics engine for games

Loading...
Searching...
No Matches
Public Attributes | List of all members
b2GearJointDef Struct Reference

`#include <b2_gear_joint.h>`

Inheritance diagram for b2GearJointDef:

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

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

- /build/box2d/src/box2d-2.4.1/include/box2d/b2_gear_joint.h