PackageBox2D.Dynamics.Joints
Classpublic class b2GearJointDef
Inheritanceb2GearJointDef Inheritance b2JointDef
Sourceb2GearJointDef.as

Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work). The provided joints must attach a dynamic body to a static body.

See also

b2GearJoint


Public Properties
 PropertyDefined by
 Inheritedbody1 : b2Body
The first attached body.
b2JointDef
 Inheritedbody2 : b2Body
The second attached body.
b2JointDef
 InheritedcollideConnected : Boolean
Set this flag to true if the attached bodies should collide.
b2JointDef
  joint1 : b2Joint
The first revolute/prismatic joint attached to the gear joint.
b2GearJointDef
  joint2 : b2Joint
The second revolute/prismatic joint attached to the gear joint.
b2GearJointDef
  ratio : Number
The gear ratio.
b2GearJointDef
 Inheritedtype : int
The joint type is set automatically for concrete joint types.
b2JointDef
 InheriteduserData : *
Use this to attach application specific data to your joints.
b2JointDef
Public Methods
 MethodDefined by
  
b2GearJointDef
Property detail
joint1property
public var joint1:b2Joint

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

joint2property 
public var joint2:b2Joint

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

ratioproperty 
public var ratio:Number

The gear ratio.

See also

Constructor detail
b2GearJointDef()constructor
public function b2GearJointDef()