| Package | Box2D.Dynamics.Joints |
| Class | public class b2PrismaticJointDef |
| Inheritance | b2PrismaticJointDef b2JointDef |
| Source | b2PrismaticJointDef.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
Enable/disable the joint limit.
| b2PrismaticJointDef | ||
| enableMotor : Boolean
Enable/disable the joint motor.
| b2PrismaticJointDef | ||
| localAnchorA : b2Vec2
The local anchor point relative to bodyA's origin.
| b2PrismaticJointDef | ||
| localAnchorB : b2Vec2
The local anchor point relative to bodyB's origin.
| b2PrismaticJointDef | ||
| localAxisA : b2Vec2
The local translation axis in body1.
| b2PrismaticJointDef | ||
| lowerTranslation : Number
The lower translation limit, usually in meters.
| b2PrismaticJointDef | ||
| maxMotorForce : Number
The maximum motor torque, usually in N-m.
| b2PrismaticJointDef | ||
| motorSpeed : Number
The desired motor speed in radians per second.
| b2PrismaticJointDef | ||
| referenceAngle : Number
The constrained angle between the bodies: bodyB_angle - bodyA_angle.
| b2PrismaticJointDef | ||
![]() | type : int
The joint type is set automatically for concrete joint types.
| b2JointDef | |
| upperTranslation : Number
The upper translation limit, usually in meters.
| b2PrismaticJointDef | ||
![]() | userData : *
Use this to attach application specific data to your joints.
| b2JointDef | |
| Method | Defined by | ||
|---|---|---|---|
| b2PrismaticJointDef | |||
| b2PrismaticJointDef | |||
| enableLimit | property |
public var enableLimit:BooleanEnable/disable the joint limit.
| enableMotor | property |
public var enableMotor:BooleanEnable/disable 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.
| localAxisA | property |
public var localAxisA:b2Vec2The local translation axis in body1.
| lowerTranslation | property |
public var lowerTranslation:NumberThe lower translation limit, usually in meters.
| maxMotorForce | property |
public var maxMotorForce:NumberThe maximum motor torque, usually in N-m.
| motorSpeed | property |
public var motorSpeed:NumberThe desired motor speed in radians per second.
| referenceAngle | property |
public var referenceAngle:NumberThe constrained angle between the bodies: bodyB_angle - bodyA_angle.
| upperTranslation | property |
public var upperTranslation:NumberThe upper translation limit, usually in meters.
| b2PrismaticJointDef | () | constructor |
public function b2PrismaticJointDef()
| Initialize | () | method |
public function Initialize(bA:b2Body, bB:b2Body, anchor:b2Vec2, axis:b2Vec2):voidParameters
bA:b2Body |
|
bB:b2Body |
|
anchor:b2Vec2 |
|
axis:b2Vec2 |