| Package | Box2D.Dynamics.Joints |
| Class | public class b2RevoluteJoint |
| Inheritance | b2RevoluteJoint b2Joint |
| Source | b2RevoluteJoint.as |
| Property | Defined by | ||
|---|---|---|---|
![]() | m_body1 : b2Body | b2Joint | |
![]() | m_body2 : b2Body | b2Joint | |
![]() | m_collideConnected : Boolean | b2Joint | |
| m_enableLimit : Boolean | b2RevoluteJoint | ||
| m_enableMotor : Boolean | b2RevoluteJoint | ||
![]() | m_inv_dt : Number | b2Joint | |
![]() | m_islandFlag : Boolean | b2Joint | |
| m_limitForce : Number | b2RevoluteJoint | ||
| m_limitPositionImpulse : Number | b2RevoluteJoint | ||
| m_limitState : int | b2RevoluteJoint | ||
| m_localAnchor1 : b2Vec2 | b2RevoluteJoint | ||
| m_localAnchor2 : b2Vec2 | b2RevoluteJoint | ||
| m_lowerAngle : Number | b2RevoluteJoint | ||
| m_maxMotorTorque : Number | b2RevoluteJoint | ||
| m_motorForce : Number | b2RevoluteJoint | ||
| m_motorMass : Number | b2RevoluteJoint | ||
| m_motorSpeed : Number | b2RevoluteJoint | ||
![]() | m_next : b2Joint | b2Joint | |
![]() | m_node1 : b2JointEdge | b2Joint | |
![]() | m_node2 : b2JointEdge | b2Joint | |
| m_pivotForce : b2Vec2 | b2RevoluteJoint | ||
| m_pivotMass : b2Mat22 | b2RevoluteJoint | ||
![]() | m_prev : b2Joint | b2Joint | |
| m_referenceAngle : Number | b2RevoluteJoint | ||
![]() | m_type : int | b2Joint | |
| m_upperAngle : Number | b2RevoluteJoint | ||
![]() | m_userData : * | b2Joint | |
| tImpulse : b2Vec2
[static]
| b2RevoluteJoint | ||
| Method | Defined by | ||
|---|---|---|---|
| b2RevoluteJoint | |||
![]() |
[static]
| b2Joint | |
![]() |
[static]
| b2Joint | |
|
EnableLimit(flag:Boolean):void
Enable/disable the joint limit.
| b2RevoluteJoint | ||
|
EnableMotor(flag:Boolean):void
Enable/disable the joint motor.
| b2RevoluteJoint | ||
| b2RevoluteJoint | |||
| 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 | |
| b2RevoluteJoint | |||
|
GetReactionTorque():Number
| 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 | |
![]() |
InitPositionConstraints():void
| b2Joint | |
|
InitVelocityConstraints(step:b2TimeStep):void
| b2RevoluteJoint | ||
|
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 | |
|
SolvePositionConstraints():Boolean
| b2RevoluteJoint | ||
|
SolveVelocityConstraints(step:b2TimeStep):void
| b2RevoluteJoint | ||
| m_enableLimit | property |
public var m_enableLimit:Boolean
| m_enableMotor | property |
public var m_enableMotor:Boolean
| m_limitForce | property |
public var m_limitForce:Number
| m_limitPositionImpulse | property |
public var m_limitPositionImpulse:Number
| m_limitState | property |
public var m_limitState:int
| m_localAnchor1 | property |
public var m_localAnchor1:b2Vec2
| m_localAnchor2 | property |
public var m_localAnchor2:b2Vec2
| m_lowerAngle | property |
public var m_lowerAngle:Number
| m_maxMotorTorque | property |
public var m_maxMotorTorque:Number
| m_motorForce | property |
public var m_motorForce:Number
| m_motorMass | property |
public var m_motorMass:Number
| m_motorSpeed | property |
public var m_motorSpeed:Number
| m_pivotForce | property |
public var m_pivotForce:b2Vec2
| m_pivotMass | property |
public var m_pivotMass:b2Mat22
| m_referenceAngle | property |
public var m_referenceAngle:Number
| m_upperAngle | property |
public var m_upperAngle:Number
| tImpulse | property |
public static var tImpulse:b2Vec2
| b2RevoluteJoint | () | constructor |
| EnableLimit | () | method |
public function EnableLimit(flag:Boolean):voidEnable/disable the joint limit.
Parametersflag:Boolean |
| EnableMotor | () | method |
public function EnableMotor(flag:Boolean):voidEnable/disable the joint motor.
Parametersflag:Boolean |
| GetAnchor1 | () | method |
| GetAnchor2 | () | method |
| GetJointAngle | () | method |
public function GetJointAngle():NumberGet the current joint angle in radians.
ReturnsNumber |
| GetJointSpeed | () | method |
public function GetJointSpeed():NumberGet the current joint angle speed in radians per second.
ReturnsNumber |
| GetLowerLimit | () | method |
public function GetLowerLimit():NumberGet the lower joint limit in radians.
ReturnsNumber |
| GetMotorSpeed | () | method |
public function GetMotorSpeed():NumberGet the motor speed in radians per second.
ReturnsNumber |
| GetMotorTorque | () | method |
public function GetMotorTorque():NumberGet the current motor torque, usually in N-m.
ReturnsNumber |
| GetReactionForce | () | method |
| GetReactionTorque | () | method |
public override function GetReactionTorque():Number
Returns
Number |
| GetUpperLimit | () | method |
public function GetUpperLimit():NumberGet the upper joint limit in radians.
ReturnsNumber |
| InitVelocityConstraints | () | method |
| IsLimitEnabled | () | method |
public function IsLimitEnabled():BooleanIs the joint limit enabled?
ReturnsBoolean |
| IsMotorEnabled | () | method |
public function IsMotorEnabled():BooleanIs the joint motor enabled?
ReturnsBoolean |
| SetLimits | () | method |
public function SetLimits(lower:Number, upper:Number):voidSet the joint limits in radians.
Parameterslower:Number |
|
upper:Number |
| SetMaxMotorTorque | () | method |
public function SetMaxMotorTorque(torque:Number):voidSet the maximum motor torque, usually in N-m.
Parameterstorque:Number |
| SetMotorSpeed | () | method |
public function SetMotorSpeed(speed:Number):voidSet the motor speed in radians per second.
Parametersspeed:Number |
| SolvePositionConstraints | () | method |
public override function SolvePositionConstraints():Boolean
Returns
Boolean |
| SolveVelocityConstraints | () | method |