Search Issue Tracker
By Design
Votes
0
Found in
2022.3.65f1
6000.0.56f1
6000.2.1f1
6000.3.0a5
6000.4.0a1
6000.5.0a1
Issue ID
UUM-114510
Regression
No
Position and rotation of a GameObject with Rigidbody reset when it is enabled and moved in the same Update call and the frame rate is low
How to reproduce:
1. Open the attached “IN-111065” project
2. Open the “SampleScene”
3. In the Game View, enable Stats
4. Enter Play mode
5. Observe the Transform positions in the Console window
6. Observe the result
Expected result: The fired objects appear in the position and rotation as shown in the Console window
Actual result: The fired objects position and rotation resets to 0,0,0
Reproducible with: 2022.1.0a6, 2022.3.65f1, 6000.0.56f1, 6000.2.1f1, 6000.3.0a5
Not reproducible with: 2021.3.55f1, 2022.1.0a5
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Workaround: Using FixedUpdate() instead of Update()
Notes:
- Also reproducible in Player
- Low framerate is not strictly necessary to reproduce the issue- it’s likely that a FixedUpdate is called in between Updates
- Once all “Bullet” GameObjects are active, the issue no longer reproduces
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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
Resolution Note:
This issue is a limitation of the interpolation/extrapolation code used in Physics. We're tracking it internally as part of our efforts for improving the "readback" logic for the physics simulation.
As advised in the previous comments within this ticket please refrain from changing rigidbody's trs position/rotation within ::Update and instead use ::FixedUpdate.