b2PrismaticJoint(native)
A prismatic joint provides one degree of freedom: translation along an axis fixed in body1.
Properties
-
enableLimit : Boolean
Enable / disable the joint limit.
-
enableMotor : Boolean
Enable / disable the joint motor.
-
lowerLimit : Float
The lower joint limit, usually in meters.
-
motorForce : Float
The current motor force, usually in N.
-
motorSpeed : Float
The motor speed, usually in meters per second.
-
upperLimit : Float
The upper joint limit, usually in meters.
Methods
-
getLimits() : Multivalue
Another way to get lower and upper limit.
-
setLimits(lower, upper) : b2PrismaticJoint
Another way to set lower and upper limit