HingeJoint:getAngle

Edit

Get the angle between the two colliders attached to the HingeJoint. When the joint is created or when the anchor or axis is set, the current angle is the new "zero" angle.

angle = HingeJoint:getAngle()

Arguments

None

Returns

NameTypeDescription
anglenumber The hinge angle, in radians.

See also