Search Issue Tracker
By Design
Votes
0
Found in
2022.1.0a6
2022.1.0b1
2022.2
Issue ID
1389181
Regression
Yes
GameObject is jittering when being rotated if the Rigidbody Interpolation is set to "Interpolate" or "Extrapolate"
How to reproduce:
1. Open the "InterpolationRotate.zip" project
2. Go to the Build Settings and build
3. Open the Player and observe the Cube rotation
Expected result: Cube is rotating smoothly
Actual result: Cube is jittering when rotating
Reproducible with: 2022.1.0a6, 2022.1.0b3, 2022.2.0a1
Not reproducible with: 2019.4.34f1, 2020.3.26f1, 2021.2.8f1, 2022.1.0a5
Note: Reproducible in the Player and in the Editor but in the Player, it's easier to see the rotation
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
The dynamic Rigidbody is being rotated by modifying the Transform component every Update in a frame-rate dependant manner. Meanwhile Interpolation tries to interpolate the position and rotation of the Transform between physics frames. So both the user script and Rigidbody Interpolation are fighting for control of the same Transform each frame.
The reason it regressed in 2022.1.0a6 is because Rigidbody Interpolation and Extrapolation got optimised to be faster by ignoring some of the Transform changes.