b2RevoluteJoint(native)
A revolute joint constrains two bodies to share a common point while they are free to rotate about the point.
Properties
-
enableLimit : Boolean
Enable / disable joint limits.
-
enableMotor : Boolean
Enable / disable the joint motor.
-
lowerLimit : Float
The lower angle for the joint limit (radians).
-
motorSpeed : Float
The desired motor speed (usually in radians per second)
-
motorTorque : Float
The maximum motor torque, usually in N-m.
-
upperLimit : Float
The upper angle for the joint limit (radians).
Methods
-
getLimits() : Multivalue
Another way to get lower and upper limit.
-
setLimits(lower, upper) : b2RevoluteJoint
Another way to set lower and upper limit