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
-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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Sprite Importer Checkbox Label Truncated in UI (2D Template)
- Light theme icon is missing for Volume Component in the Inspector window
- Volume Profile effects are still showing and active in Game View when the Volume Profile is reset
- Shader Graph Tab Lacks Right Margin for Long Titles
- 2DLight component only renders when ShadowCaster2D components are within range in WebGL builds
This is a duplicate of issue #891981