b2GearJointDef Class
Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work).
Constructor
b2GearJointDef
()
Item Index
Methods
Methods
initialize
(
Void
public
-
bodyA
-
bodyB
-
anchor
Parameters:
-
bodyA
B2Body -
bodyB
B2Body -
anchor
B2Vec2
Returns:
Void:
Properties
joint1
b2Joint | Null
public
The first revolute/prismatic joint attached to the gear joint.
Default: null
joint2
b2Joint | Null
public
The second revolute/prismatic joint attached to the gear joint.
Default: null
ratio
Float
public
The gear ratio.
Default: 1.0
type
Int
public
Default: b2Joint.e_gearJoint