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
- [Android][IL2CPP][ARMv7] Struct field value corrupts when invoking a generic delegate with a large struct by value
- Highlights persist throughout Options Panels in the Rendering Debugger Window
- Typing numbers in Matrix node’s numeric fields stretches Node
- Streaming is misspelled as "Steaming" in "Enable GPU Streaming" and "Enable Disk Streaming" tooltpis
- "IndexOutOfRangeException" thrown when moving caret left at start of TMP Input Field with rich text
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.