Package | Box2D.Dynamics.Joints |
Class | public class b2RevoluteJointDef |
Inheritance | b2RevoluteJointDef b2JointDef |
Source | b2RevoluteJointDef.as |
See also
Property | Defined by | ||
---|---|---|---|
body1 : b2Body
The first attached body.
| b2JointDef | ||
body2 : 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 | ||
localAnchor1 : b2Vec2
The local anchor point relative to body1's origin.
| b2RevoluteJointDef | ||
localAnchor2 : b2Vec2
The local anchor point relative to body2'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 body2 angle minus body1 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:Boolean
A flag to enable joint limits.
enableMotor | property |
public var enableMotor:Boolean
A flag to enable the joint motor.
localAnchor1 | property |
public var localAnchor1:b2Vec2
The local anchor point relative to body1's origin.
localAnchor2 | property |
public var localAnchor2:b2Vec2
The local anchor point relative to body2's origin.
lowerAngle | property |
public var lowerAngle:Number
The lower angle for the joint limit (radians).
maxMotorTorque | property |
public var maxMotorTorque:Number
The maximum motor torque used to achieve the desired motor speed. Usually in N-m.
motorSpeed | property |
public var motorSpeed:Number
The desired motor speed. Usually in radians per second.
referenceAngle | property |
public var referenceAngle:Number
The body2 angle minus body1 angle in the reference state (radians).
upperAngle | property |
public var upperAngle:Number
The upper angle for the joint limit (radians).
b2RevoluteJointDef | () | constructor |
public function b2RevoluteJointDef()
Initialize | () | method |
public function Initialize(b1:b2Body, b2:b2Body, anchor:b2Vec2):void
Initialize the bodies, anchors, and reference angle using the world anchor.
Parametersb1:b2Body |
|
b2:b2Body |
|
anchor:b2Vec2 |