Search Issue Tracker

Duplicate

Votes

0

Found in

5.2.3f1

Issue ID

762760

Regression

No

HingeJoint.angle is incorrect when object has initial rotation

Physics

-

-e: The value reported by HingeJoint.angle is incorrect when an object with the HingeJoint component has a non-zero angle set in either the x or z rotation in its transform, and the parent object is subsequently rotated in the y or z axes. In this setup the parent object is the connected body and the joint's axis is the x axis.

-repro:
--open project attached to first edit
--Set the rotation angle of TopCube to zero.
--Run the scene
--Rotate the BottomCube
--Observe that the reported HingeJoint.angle stays nearly zero
--Set the transform rotation angle of TopCube to non-zero, say 10
--Run the scene
--In the scene view, select the "BottomCube" object and rotate it in either the y or z axis.
--NOTICE in the console that the value reported by HingeJoint.angle changes unexpectedly, even though the joint has not rotated about its axis.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.