PackageBox2D.Dynamics.Joints
Classpublic class b2PrismaticJointDef
Inheritanceb2PrismaticJointDef Inheritance b2JointDef
Sourceb2PrismaticJointDef.as



Public Properties
 PropertyDefined by
 Inheritedbody1 : b2Body
The first attached body.
b2JointDef
 Inheritedbody2 : b2Body
The second attached body.
b2JointDef
 InheritedcollideConnected : 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
  localAnchor1 : b2Vec2
The local anchor point relative to body1's origin.
b2PrismaticJointDef
  localAnchor2 : b2Vec2
The local anchor point relative to body2's origin.
b2PrismaticJointDef
  localAxis1 : 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: body2_angle - body1_angle.
b2PrismaticJointDef
 Inheritedtype : int
The joint type is set automatically for concrete joint types.
b2JointDef
  upperTranslation : Number
The upper translation limit, usually in meters.
b2PrismaticJointDef
 InheriteduserData : *
Use this to attach application specific data to your joints.
b2JointDef
Public Methods
 MethodDefined by
  
b2PrismaticJointDef
  
Initialize(b1:b2Body, b2:b2Body, anchor:b2Vec2, axis:b2Vec2):void
b2PrismaticJointDef
Property detail
enableLimitproperty
public var enableLimit:Boolean

Enable/disable the joint limit.

enableMotorproperty 
public var enableMotor:Boolean

Enable/disable the joint motor.

localAnchor1property 
public var localAnchor1:b2Vec2

The local anchor point relative to body1's origin.

localAnchor2property 
public var localAnchor2:b2Vec2

The local anchor point relative to body2's origin.

localAxis1property 
public var localAxis1:b2Vec2

The local translation axis in body1.

lowerTranslationproperty 
public var lowerTranslation:Number

The lower translation limit, usually in meters.

maxMotorForceproperty 
public var maxMotorForce:Number

The maximum motor torque, usually in N-m.

motorSpeedproperty 
public var motorSpeed:Number

The desired motor speed in radians per second.

referenceAngleproperty 
public var referenceAngle:Number

The constrained angle between the bodies: body2_angle - body1_angle.

upperTranslationproperty 
public var upperTranslation:Number

The upper translation limit, usually in meters.

Constructor detail
b2PrismaticJointDef()constructor
public function b2PrismaticJointDef()
Method detail
Initialize()method
public function Initialize(b1:b2Body, b2:b2Body, anchor:b2Vec2, axis:b2Vec2):voidParameters
b1:b2Body
 
b2:b2Body
 
anchor:b2Vec2
 
axis:b2Vec2