| Package | Box2D.Dynamics.Joints |
| Class | public class b2RevoluteJointDef |
| Inheritance | b2RevoluteJointDef b2JointDef |
| Source | b2RevoluteJointDef.as |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | bodyA : b2Body
The first attached body.
| b2JointDef | |
![]() | bodyB : b2Body
The second attached body.
| b2JointDef | |
![]() | collideConnected : Boolean
Set this flag to true if the attached bodies should collide.
| b2JointDef | |
| enableLimit : Boolean
A flag to enable joint limits.
| b2RevoluteJointDef | ||
| enableMotor : Boolean
A flag to enable the joint motor.
| b2RevoluteJointDef | ||
| localAnchorA : b2Vec2
The local anchor point relative to bodyA's origin.
| b2RevoluteJointDef | ||
| localAnchorB : b2Vec2
The local anchor point relative to bodyB's origin.
| b2RevoluteJointDef | ||
| lowerAngle : Number
The lower angle for the joint limit (radians).
| b2RevoluteJointDef | ||
| maxMotorTorque : Number
The maximum motor torque used to achieve the desired motor speed.
| b2RevoluteJointDef | ||
| motorSpeed : Number
The desired motor speed.
| b2RevoluteJointDef | ||
| referenceAngle : Number
The bodyB angle minus bodyA angle in the reference state (radians).
| b2RevoluteJointDef | ||
![]() | type : int
The joint type is set automatically for concrete joint types.
| b2JointDef | |
| upperAngle : Number
The upper angle for the joint limit (radians).
| b2RevoluteJointDef | ||
![]() | userData : *
Use this to attach application specific data to your joints.
| b2JointDef | |
| Method | Defined by | ||
|---|---|---|---|
| b2RevoluteJointDef | |||
|
Initialize the bodies, anchors, and reference angle using the world
anchor.
| b2RevoluteJointDef | ||
| enableLimit | property |
public var enableLimit:BooleanA flag to enable joint limits.
| enableMotor | property |
public var enableMotor:BooleanA flag to enable the joint motor.
| localAnchorA | property |
public var localAnchorA:b2Vec2The local anchor point relative to bodyA's origin.
| localAnchorB | property |
public var localAnchorB:b2Vec2The local anchor point relative to bodyB's origin.
| lowerAngle | property |
public var lowerAngle:NumberThe lower angle for the joint limit (radians).
| maxMotorTorque | property |
public var maxMotorTorque:NumberThe maximum motor torque used to achieve the desired motor speed. Usually in N-m.
| motorSpeed | property |
public var motorSpeed:NumberThe desired motor speed. Usually in radians per second.
| referenceAngle | property |
public var referenceAngle:NumberThe bodyB angle minus bodyA angle in the reference state (radians).
| upperAngle | property |
public var upperAngle:NumberThe upper angle for the joint limit (radians).
| b2RevoluteJointDef | () | constructor |
public function b2RevoluteJointDef()
| Initialize | () | method |
public function Initialize(bA:b2Body, bB:b2Body, anchor:b2Vec2):voidInitialize the bodies, anchors, and reference angle using the world anchor.
ParametersbA:b2Body |
|
bB:b2Body |
|
anchor:b2Vec2 |