PackageBox2D.Dynamics.Joints
Classpublic class b2GearJoint
Inheritanceb2GearJoint Inheritance b2Joint

A gear joint is used to connect two joints together. Either joint can be a revolute or prismatic joint. You specify a gear ratio to bind the motions together: coordinate1 + ratio coordinate2 = constant The ratio can be negative or positive. If one joint is a revolute joint and the other joint is a prismatic joint, then the ratio will have units of length or units of 1/length.



Public Methods
 MethodDefined by
  
b2GearJoint
 Inherited
Create(def:b2JointDef, allocator:*):b2Joint
[static]
b2Joint
 Inherited
Destroy(joint:b2Joint, allocator:*):void
[static]
b2Joint
  
b2GearJoint
  
b2GearJoint
 Inherited
Get the first body attached to this joint.
b2Joint
 Inherited
Get the second body attached to this joint.
b2Joint
 Inherited
Get the next joint the world joint list.
b2Joint
  
GetRatio():Number
b2GearJoint
  
b2GearJoint
  
b2GearJoint
 Inherited
GetType():int
Get the type of the concrete joint.
b2Joint
 Inherited
Get the user data pointer.
b2Joint
 Inherited
b2Joint
  
b2GearJoint
 Inherited
SetUserData(data:*):void
Set the user data pointer.
b2Joint
  
b2GearJoint
  
b2GearJoint
Public Constants
 ConstantDefined by
 Inheritede_atLowerLimit : int = 1
[static]
b2Joint
 Inheritede_atUpperLimit : int = 2
[static]
b2Joint
 Inheritede_distanceJoint : int = 3
[static]
b2Joint
 Inheritede_equalLimits : int = 3
[static]
b2Joint
 Inheritede_gearJoint : int = 6
[static]
b2Joint
 Inheritede_inactiveLimit : int = 0
[static]
b2Joint
 Inheritede_mouseJoint : int = 5
[static]
b2Joint
 Inheritede_prismaticJoint : int = 2
[static]
b2Joint
 Inheritede_pulleyJoint : int = 4
[static]
b2Joint
 Inheritede_revoluteJoint : int = 1
[static]
b2Joint
 Inheritede_unknownJoint : int = 0
[static]
b2Joint
Constructor detail
b2GearJoint()constructor
public function b2GearJoint(def:b2GearJointDef)Parameters
def:b2GearJointDef
Method detail
GetAnchor1()method
public override function GetAnchor1():b2Vec2

Returns
b2Vec2
GetAnchor2()method 
public override function GetAnchor2():b2Vec2

Returns
b2Vec2
GetRatio()method 
public function GetRatio():Number

Returns
Number
GetReactionForce()method 
public override function GetReactionForce():b2Vec2

Returns
b2Vec2
GetReactionTorque()method 
public override function GetReactionTorque():Number

Returns
Number
InitVelocityConstraints()method 
public override function InitVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep
SolvePositionConstraints()method 
public override function SolvePositionConstraints():Boolean

Returns
Boolean
SolveVelocityConstraints()method 
public override function SolveVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep