PackageBox2D.Dynamics.Joints
Classpublic class b2RevoluteJoint
Inheritanceb2RevoluteJoint Inheritance b2Joint

A revolute joint constrains to bodies to share a common point while they are free to rotate about the point. The relative rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is provided so that infinite forces are not generated. Point-to-point constraint Identity used: Motor constraint



Public Properties
 PropertyDefined by
  tImpulse : b2Vec2
[static]
b2RevoluteJoint
Public Methods
 MethodDefined by
  
b2RevoluteJoint
 Inherited
Create(def:b2JointDef, allocator:*):b2Joint
[static]
b2Joint
 Inherited
Destroy(joint:b2Joint, allocator:*):void
[static]
b2Joint
  
EnableLimit(flag:Boolean):void
Enable/disable the joint limit.
b2RevoluteJoint
  
EnableMotor(flag:Boolean):void
Enable/disable the joint motor.
b2RevoluteJoint
  
b2RevoluteJoint
  
b2RevoluteJoint
 Inherited
Get the first body attached to this joint.
b2Joint
 Inherited
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
 Inherited
Get the next joint the world joint list.
b2Joint
  
b2RevoluteJoint
  
b2RevoluteJoint
 Inherited
GetType():int
Get the type of the concrete joint.
b2Joint
  
GetUpperLimit():Number
Get the upper joint limit in radians.
b2RevoluteJoint
 Inherited
Get the user data pointer.
b2Joint
 Inherited
b2Joint
  
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
 Inherited
SetUserData(data:*):void
Set the user data pointer.
b2Joint
  
b2RevoluteJoint
  
b2RevoluteJoint
Public Constants
 ConstantDefined by
 Inheritede_atLowerLimit : int = 1
[static]
b2Joint
 Inheritede_atUpperLimit : int = 2
[static]
b2Joint
 Inheritede_distanceJoint : int = 3
[static]
b2Joint
 Inheritede_equalLimits : int = 3
[static]
b2Joint
 Inheritede_gearJoint : int = 6
[static]
b2Joint
 Inheritede_inactiveLimit : int = 0
[static]
b2Joint
 Inheritede_mouseJoint : int = 5
[static]
b2Joint
 Inheritede_prismaticJoint : int = 2
[static]
b2Joint
 Inheritede_pulleyJoint : int = 4
[static]
b2Joint
 Inheritede_revoluteJoint : int = 1
[static]
b2Joint
 Inheritede_unknownJoint : int = 0
[static]
b2Joint
Property detail
m_localAnchor1property
b2internal var m_localAnchor1:b2Vec2
m_localAnchor2property 
b2internal var m_localAnchor2:b2Vec2
tImpulseproperty 
public static var tImpulse:b2Vec2
Constructor detail
b2RevoluteJoint()constructor
public function b2RevoluteJoint(def:b2RevoluteJointDef)Parameters
def:b2RevoluteJointDef
Method detail
EnableLimit()method
public function EnableLimit(flag:Boolean):void

Enable/disable the joint limit.

Parameters
flag:Boolean
EnableMotor()method 
public function EnableMotor(flag:Boolean):void

Enable/disable the joint motor.

Parameters
flag:Boolean
GetAnchor1()method 
public override function GetAnchor1():b2Vec2

Returns
b2Vec2
GetAnchor2()method 
public override function GetAnchor2():b2Vec2

Returns
b2Vec2
GetJointAngle()method 
public function GetJointAngle():Number

Get the current joint angle in radians.

Returns
Number
GetJointSpeed()method 
public function GetJointSpeed():Number

Get the current joint angle speed in radians per second.

Returns
Number
GetLowerLimit()method 
public function GetLowerLimit():Number

Get the lower joint limit in radians.

Returns
Number
GetMotorSpeed()method 
public function GetMotorSpeed():Number

Get the motor speed in radians per second.

Returns
Number
GetMotorTorque()method 
public function GetMotorTorque():Number

Get the current motor torque, usually in N-m.

Returns
Number
GetReactionForce()method 
public override function GetReactionForce():b2Vec2

Returns
b2Vec2
GetReactionTorque()method 
public override function GetReactionTorque():Number

Returns
Number
GetUpperLimit()method 
public function GetUpperLimit():Number

Get the upper joint limit in radians.

Returns
Number
InitVelocityConstraints()method 
public override function InitVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep
IsLimitEnabled()method 
public function IsLimitEnabled():Boolean

Is the joint limit enabled?

Returns
Boolean
IsMotorEnabled()method 
public function IsMotorEnabled():Boolean

Is the joint motor enabled?

Returns
Boolean
SetLimits()method 
public function SetLimits(lower:Number, upper:Number):void

Set the joint limits in radians.

Parameters
lower:Number
 
upper:Number
SetMaxMotorTorque()method 
public function SetMaxMotorTorque(torque:Number):void

Set the maximum motor torque, usually in N-m.

Parameters
torque:Number
SetMotorSpeed()method 
public function SetMotorSpeed(speed:Number):void

Set the motor speed in radians per second.

Parameters
speed:Number
SolvePositionConstraints()method 
public override function SolvePositionConstraints():Boolean

Returns
Boolean
SolveVelocityConstraints()method 
public override function SolveVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep