Package | Box2D.Dynamics.Joints |
Class | public class b2PrismaticJoint |
Inheritance | b2PrismaticJoint ![]() |
Method | Defined by | ||
---|---|---|---|
b2PrismaticJoint | |||
![]() |
[static]
| b2Joint | |
![]() |
[static]
| b2Joint | |
EnableLimit(flag:Boolean):void
Enable/disable the joint limit.
| b2PrismaticJoint | ||
EnableMotor(flag:Boolean):void
Enable/disable the joint motor.
| b2PrismaticJoint | ||
b2PrismaticJoint | |||
b2PrismaticJoint | |||
![]() |
Get the first body attached to this joint.
| b2Joint | |
![]() |
Get the second body attached to this joint.
| b2Joint | |
GetJointSpeed():Number
Get the current joint translation speed, usually in meters per second.
| b2PrismaticJoint | ||
GetJointTranslation():Number
Get the current joint translation, usually in meters.
| b2PrismaticJoint | ||
GetLowerLimit():Number
Get the lower joint limit, usually in meters.
| b2PrismaticJoint | ||
GetMotorForce():Number
Get the current motor force, usually in N.
| b2PrismaticJoint | ||
GetMotorSpeed():Number
Get the motor speed, usually in meters per second.
| b2PrismaticJoint | ||
![]() |
Get the next joint the world joint list.
| b2Joint | |
b2PrismaticJoint | |||
GetReactionTorque():Number
| b2PrismaticJoint | ||
![]() |
GetType():int
Get the type of the concrete joint.
| b2Joint | |
GetUpperLimit():Number
Get the upper joint limit, usually in meters.
| b2PrismaticJoint | ||
![]() |
GetUserData():*
Get the user data pointer.
| b2Joint | |
![]() |
InitPositionConstraints():void
| b2Joint | |
InitVelocityConstraints(step:b2TimeStep):void
| b2PrismaticJoint | ||
IsLimitEnabled():Boolean
Is the joint limit enabled?
| b2PrismaticJoint | ||
IsMotorEnabled():Boolean
Is the joint motor enabled?
| b2PrismaticJoint | ||
SetLimits(lower:Number, upper:Number):void
Set the joint limits, usually in meters.
| b2PrismaticJoint | ||
SetMaxMotorForce(force:Number):void
Set the maximum motor force, usually in N.
| b2PrismaticJoint | ||
SetMotorSpeed(speed:Number):void
Set the motor speed, usually in meters per second.
| b2PrismaticJoint | ||
![]() |
SetUserData(data:*):void
Set the user data pointer.
| b2Joint | |
SolvePositionConstraints():Boolean
| b2PrismaticJoint | ||
SolveVelocityConstraints(step:b2TimeStep):void
| b2PrismaticJoint |
m_localAnchor1 | property |
b2internal var m_localAnchor1:b2Vec2
m_localAnchor2 | property |
b2internal var m_localAnchor2:b2Vec2
m_localXAxis1 | property |
b2internal var m_localXAxis1:b2Vec2
b2PrismaticJoint | () | constructor |
EnableLimit | () | method |
public function EnableLimit(flag:Boolean):void
Enable/disable the joint limit.
Parametersflag:Boolean |
EnableMotor | () | method |
public function EnableMotor(flag:Boolean):void
Enable/disable the joint motor.
Parametersflag:Boolean |
GetAnchor1 | () | method |
GetAnchor2 | () | method |
GetJointSpeed | () | method |
public function GetJointSpeed():Number
Get the current joint translation speed, usually in meters per second.
ReturnsNumber |
GetJointTranslation | () | method |
public function GetJointTranslation():Number
Get the current joint translation, usually in meters.
ReturnsNumber |
GetLowerLimit | () | method |
public function GetLowerLimit():Number
Get the lower joint limit, usually in meters.
ReturnsNumber |
GetMotorForce | () | method |
public function GetMotorForce():Number
Get the current motor force, usually in N.
ReturnsNumber |
GetMotorSpeed | () | method |
public function GetMotorSpeed():Number
Get the motor speed, usually in meters per second.
ReturnsNumber |
GetReactionForce | () | method |
GetReactionTorque | () | method |
public override function GetReactionTorque():Number
Returns
Number |
GetUpperLimit | () | method |
public function GetUpperLimit():Number
Get the upper joint limit, usually in meters.
ReturnsNumber |
InitVelocityConstraints | () | method |
IsLimitEnabled | () | method |
public function IsLimitEnabled():Boolean
Is the joint limit enabled?
ReturnsBoolean |
IsMotorEnabled | () | method |
public function IsMotorEnabled():Boolean
Is the joint motor enabled?
ReturnsBoolean |
SetLimits | () | method |
public function SetLimits(lower:Number, upper:Number):void
Set the joint limits, usually in meters.
Parameterslower:Number |
|
upper:Number |
SetMaxMotorForce | () | method |
public function SetMaxMotorForce(force:Number):void
Set the maximum motor force, usually in N.
Parametersforce:Number |
SetMotorSpeed | () | method |
public function SetMotorSpeed(speed:Number):void
Set the motor speed, usually in meters per second.
Parametersspeed:Number |
SolvePositionConstraints | () | method |
public override function SolvePositionConstraints():Boolean
Returns
Boolean |
SolveVelocityConstraints | () | method |