Package | Box2D.Dynamics.Joints |
Class | public class b2GearJoint |
Inheritance | b2GearJoint b2Joint |
Source | b2GearJoint.as |
Warning: The revolute and prismatic joints must be attached to fixed bodies (which must be body1 on those joints).
See also
Method | Defined by | ||
---|---|---|---|
Get the anchor point on body1 in world coordinates.
| b2GearJoint | ||
Get the anchor point on body2 in world coordinates.
| b2GearJoint | ||
Get the first body attached to this joint.
| b2Joint | ||
Get the second body attached to this joint.
| b2Joint | ||
Get the next joint the world joint list.
| b2Joint | ||
GetRatio():Number
Get the gear ratio.
| b2GearJoint | ||
GetReactionForce(inv_dt:Number):b2Vec2
Get the reaction force on body2 at the joint anchor.
| b2GearJoint | ||
GetReactionTorque(inv_dt:Number):Number
Get the reaction torque on body2.
| b2GearJoint | ||
GetType():int
Get the type of the concrete joint.
| b2Joint | ||
GetUserData():*
Get the user data pointer.
| b2Joint | ||
SetUserData(data:*):void
Set the user data pointer.
| b2Joint |
GetAnchor1 | () | method |
public override function GetAnchor1():b2Vec2
Get the anchor point on body1 in world coordinates.
Returnsb2Vec2 |
GetAnchor2 | () | method |
public override function GetAnchor2():b2Vec2
Get the anchor point on body2 in world coordinates.
Returnsb2Vec2 |
GetRatio | () | method |
public function GetRatio():Number
Get the gear ratio.
ReturnsNumber |
GetReactionForce | () | method |
public override function GetReactionForce(inv_dt:Number):b2Vec2
Get the reaction force on body2 at the joint anchor.
Parametersinv_dt:Number |
b2Vec2 |
GetReactionTorque | () | method |
public override function GetReactionTorque(inv_dt:Number):Number
Get the reaction torque on body2.
Parametersinv_dt:Number |
Number |