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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.