Package | Box2D.Dynamics.Joints |
Class | public class b2RevoluteJoint |
Inheritance | b2RevoluteJoint b2Joint |
Source | b2RevoluteJoint.as |
See also
Method | Defined by | ||
---|---|---|---|
EnableLimit(flag:Boolean):void
Enable/disable the joint limit.
| b2RevoluteJoint | ||
EnableMotor(flag:Boolean):void
Enable/disable the joint motor.
| b2RevoluteJoint | ||
Get the anchor point on body1 in world coordinates.
| b2RevoluteJoint | ||
Get the anchor point on body2 in world coordinates.
| b2RevoluteJoint | ||
Get the first body attached to this joint.
| b2Joint | ||
Get the second body attached to this joint.
| b2Joint | ||
GetJointAngle():Number
Get the current joint angle in radians.
| b2RevoluteJoint | ||
GetJointSpeed():Number
Get the current joint angle speed in radians per second.
| b2RevoluteJoint | ||
GetLowerLimit():Number
Get the lower joint limit in radians.
| b2RevoluteJoint | ||
GetMotorSpeed():Number
Get the motor speed in radians per second.
| b2RevoluteJoint | ||
GetMotorTorque():Number
Get the current motor torque, usually in N-m.
| b2RevoluteJoint | ||
Get the next joint the world joint list.
| b2Joint | ||
GetReactionForce(inv_dt:Number):b2Vec2
Get the reaction force on body2 at the joint anchor.
| b2RevoluteJoint | ||
GetReactionTorque(inv_dt:Number):Number
Get the reaction torque on body2.
| b2RevoluteJoint | ||
GetType():int
Get the type of the concrete joint.
| b2Joint | ||
GetUpperLimit():Number
Get the upper joint limit in radians.
| b2RevoluteJoint | ||
GetUserData():*
Get the user data pointer.
| b2Joint | ||
IsLimitEnabled():Boolean
Is the joint limit enabled?
| b2RevoluteJoint | ||
IsMotorEnabled():Boolean
Is the joint motor enabled?
| b2RevoluteJoint | ||
SetLimits(lower:Number, upper:Number):void
Set the joint limits in radians.
| b2RevoluteJoint | ||
SetMaxMotorTorque(torque:Number):void
Set the maximum motor torque, usually in N-m.
| b2RevoluteJoint | ||
SetMotorSpeed(speed:Number):void
Set the motor speed in radians per second.
| b2RevoluteJoint | ||
SetUserData(data:*):void
Set the user data pointer.
| b2Joint |
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 |
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 |
GetJointAngle | () | method |
public function GetJointAngle():Number
Get the current joint angle in radians.
ReturnsNumber |
GetJointSpeed | () | method |
public function GetJointSpeed():Number
Get the current joint angle speed in radians per second.
ReturnsNumber |
GetLowerLimit | () | method |
public function GetLowerLimit():Number
Get the lower joint limit in radians.
ReturnsNumber |
GetMotorSpeed | () | method |
public function GetMotorSpeed():Number
Get the motor speed in radians per second.
ReturnsNumber |
GetMotorTorque | () | method |
public function GetMotorTorque():Number
Get the current motor torque, usually in N-m.
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 |
GetUpperLimit | () | method |
public function GetUpperLimit():Number
Get the upper joint limit in radians.
ReturnsNumber |
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 in radians.
Parameterslower:Number |
|
upper:Number |
SetMaxMotorTorque | () | method |
public function SetMaxMotorTorque(torque:Number):void
Set the maximum motor torque, usually in N-m.
Parameterstorque:Number |
SetMotorSpeed | () | method |
public function SetMotorSpeed(speed:Number):void
Set the motor speed in radians per second.
Parametersspeed:Number |