| Package | Box2D.Dynamics.Joints |
| Class | public class b2DistanceJoint |
| Inheritance | b2DistanceJoint b2Joint |
| Source | b2DistanceJoint.as |
See also
| Method | Defined by | ||
|---|---|---|---|
|
Get the anchor point on bodyA in world coordinates.
| b2DistanceJoint | ||
|
Get the anchor point on bodyB in world coordinates.
| b2DistanceJoint | ||
![]() |
Get the first body attached to this joint.
| b2Joint | |
![]() |
Get the second body attached to this joint.
| b2Joint | |
|
GetDampingRatio():Number
| b2DistanceJoint | ||
|
GetFrequency():Number
| b2DistanceJoint | ||
|
GetLength():Number
| b2DistanceJoint | ||
![]() |
Get the next joint the world joint list.
| b2Joint | |
|
GetReactionForce(inv_dt:Number):b2Vec2
Get the reaction force on body2 at the joint anchor in Newtons.
| b2DistanceJoint | ||
|
GetReactionTorque(inv_dt:Number):Number
Get the reaction torque on body2 in N.
| b2DistanceJoint | ||
![]() |
GetType():int
Get the type of the concrete joint.
| b2Joint | |
![]() |
GetUserData():*
Get the user data pointer.
| b2Joint | |
![]() |
IsActive():Boolean
Short-cut function to determine if either body is inactive.
| b2Joint | |
|
SetDampingRatio(ratio:Number):void
| b2DistanceJoint | ||
|
SetFrequency(hz:Number):void
| b2DistanceJoint | ||
|
SetLength(length:Number):void
| b2DistanceJoint | ||
![]() |
SetUserData(data:*):void
Set the user data pointer.
| b2Joint | |
| GetAnchorA | () | method |
public override function GetAnchorA():b2Vec2Get the anchor point on bodyA in world coordinates.
Returnsb2Vec2 |
| GetAnchorB | () | method |
public override function GetAnchorB():b2Vec2Get the anchor point on bodyB in world coordinates.
Returnsb2Vec2 |
| GetDampingRatio | () | method |
public function GetDampingRatio():Number
Returns
Number |
| GetFrequency | () | method |
public function GetFrequency():Number
Returns
Number |
| GetLength | () | method |
public function GetLength():Number
Returns
Number |
| GetReactionForce | () | method |
public override function GetReactionForce(inv_dt:Number):b2Vec2Get the reaction force on body2 at the joint anchor in Newtons.
Parametersinv_dt:Number |
b2Vec2 |
| GetReactionTorque | () | method |
public override function GetReactionTorque(inv_dt:Number):NumberGet the reaction torque on body2 in N.
Parametersinv_dt:Number |
Number |
| SetDampingRatio | () | method |
public function SetDampingRatio(ratio:Number):voidParameters
ratio:Number |
| SetFrequency | () | method |
public function SetFrequency(hz:Number):voidParameters
hz:Number |
| SetLength | () | method |
public function SetLength(length:Number):voidParameters
length:Number |