Skip to content

Interface: GearJointDef ​

Gear joint definition.

Extends ​

Properties ​

bodyA ​

bodyA: Body

The first attached body.

Inherited from ​

JointDef.bodyA


bodyB ​

bodyB: Body

The second attached body.

Inherited from ​

JointDef.bodyB


collideConnected? ​

optional collideConnected: boolean

Set this flag to true if the attached bodies should collide.

Inherited from ​

JointDef.collideConnected


joint1 ​

joint1: RevoluteJoint | PrismaticJoint

The first revolute/prismatic joint attached to the gear joint.


joint2 ​

joint2: RevoluteJoint | PrismaticJoint

The second prismatic/revolute joint attached to the gear joint.


ratio? ​

optional ratio: number

The gear ratio. See GearJoint for explanation.

Inherited from ​

GearJointOpt.ratio


style? ​

optional style: Style

Styling for dev-tools.

Inherited from ​

JointDef.style


userData? ​

optional userData: any

Use this to attach application specific data to your joints.

Inherited from ​

JointDef.userData