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
- Crash on GizmoDrawingPhysics2D::DrawCompositeCollider2DGizmo when opening a Scene that has corrupted GameObjects with Tilemap Components
- Scrolling vertically and horizontally is very fast when in Play Mode and RuntimeInputBackend is set to UIToolkitInputBackendOption.Default
- Crash on MemoryProfiler::UnregisterAllocation when initializing entities and leaving Play Mode with Occlusion Culling enabled
- Crash on mdb_page_alloc when opening a project that was running while the PC shut down
- macOS Player freeze when using RunInBackground and Command+Tabbing to and from the application
This is a duplicate of issue #891981