SliderJoint

SliderJoint

new SliderJoint(spriteA, spriteB)

A slider joint constrains the motion of two sprites to sliding along a common axis, without rotation. Also known as a prismatic joint.
Source:
Parameters:
Name Type Description
spriteA Sprite
spriteB Sprite

Extends

Classes

SliderJoint

Members

angle :Number

The angle of the joint's axis which its sprites slide along.
Default Value:
  • 0
Source:
Type:
  • Number

lowerLimit :Number

The mathematical lower (not positionally lower) limit of translation.
Default Value:
  • undefined
Source:
Type:
  • Number

range :Number

The joint's range of translation. Setting the range changes the joint's upper and lower limits.
Default Value:
  • undefined
Source:
Type:
  • Number

upperLimit :Number

The mathematical upper (not positionally higher) limit of translation.
Default Value:
  • undefined
Source:
Type:
  • Number