API Documentation for:
Show:

b2GearJointDef Class

Extends B2JointDef
Defined in: b2GearJointDef:17
Module: Joints

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

Constructor

b2GearJointDef

()

Defined in b2GearJointDef:17

Methods

initialize

(
  • bodyA
  • bodyB
  • anchor
)
Void public

Defined in initialize:117

Parameters:

  • bodyA B2Body
  • bodyB B2Body
  • anchor B2Vec2

Returns:

Void:

Properties

joint1

b2Joint | Null public

Defined in joint1:57

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

Default: null

joint2

b2Joint | Null public

Defined in joint2:67

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

Default: null

ratio

Float public

Defined in ratio:77

The gear ratio.

Default: 1.0

type

Int public

Defined in type:49

Default: b2Joint.e_gearJoint