Appearance
Interface: PrismaticJointOpt
Prismatic joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.
Extends
Extended by
Properties
collideConnected?
optionalcollideConnected:boolean
Set this flag to true if the attached bodies should collide.
Inherited from
enableLimit?
optionalenableLimit:boolean
Enable/disable the joint limit.
enableMotor?
optionalenableMotor:boolean
Enable/disable the joint motor.
lowerTranslation?
optionallowerTranslation:number
The lower translation limit, usually in meters.
maxMotorForce?
optionalmaxMotorForce:number
The maximum motor torque, usually in N-m.
motorSpeed?
optionalmotorSpeed:number
The desired motor speed in radians per second.
style?
optionalstyle:Style
Styling for dev-tools.
Inherited from
upperTranslation?
optionalupperTranslation:number
The upper translation limit, usually in meters.
userData?
optionaluserData:any
Use this to attach application specific data to your joints.