| Package | Box2D.Dynamics.Joints |
| Class | public class b2Joint |
| Subclasses | b2DistanceJoint, b2FrictionJoint, b2GearJoint, b2LineJoint, b2MouseJoint, b2PrismaticJoint, b2PulleyJoint, b2RevoluteJoint, b2WeldJoint |
| Source | b2Joint.as |
See also
| Method | Defined by | ||
|---|---|---|---|
|
Get the anchor point on bodyA in world coordinates.
| b2Joint | ||
|
Get the anchor point on bodyB in world coordinates.
| b2Joint | ||
|
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 | ||
|
GetReactionForce(inv_dt:Number):b2Vec2
Get the reaction force on body2 at the joint anchor in Newtons.
| b2Joint | ||
|
GetReactionTorque(inv_dt:Number):Number
Get the reaction torque on body2 in N.
| b2Joint | ||
|
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 | ||
|
SetUserData(data:*):void
Set the user data pointer.
| b2Joint | ||
| GetAnchorA | () | method |
public function GetAnchorA():b2Vec2Get the anchor point on bodyA in world coordinates.
Returnsb2Vec2 |
| GetAnchorB | () | method |
public function GetAnchorB():b2Vec2Get the anchor point on bodyB in world coordinates.
Returnsb2Vec2 |
| GetBodyA | () | method |
| GetBodyB | () | method |
| GetNext | () | method |
| GetReactionForce | () | method |
public function GetReactionForce(inv_dt:Number):b2Vec2Get the reaction force on body2 at the joint anchor in Newtons.
Parametersinv_dt:Number |
b2Vec2 |
| GetReactionTorque | () | method |
public function GetReactionTorque(inv_dt:Number):NumberGet the reaction torque on body2 in N.
Parametersinv_dt:Number |
Number |
| GetType | () | method |
public function GetType():intGet the type of the concrete joint.
Returnsint |
| GetUserData | () | method |
public function GetUserData():*Get the user data pointer.
Returns* |
| IsActive | () | method |
public function IsActive():BooleanShort-cut function to determine if either body is inactive.
ReturnsBoolean |
| SetUserData | () | method |
public function SetUserData(data:*):voidSet the user data pointer.
Parametersdata:* |