Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.3.0a2
2020.1
2020.2
2020.2.0a10
Issue ID
1244381
Regression
Yes
RigidBody loses its constraints when its GameObject is unparented and the parent has specific position values
How to reproduce:
1. Open user-submitted project (ConstraintsBugParent.zip)
2. Enter Play Mode
3. Select the Sphere in Scene View and see its positional gizmos
Expected result: the RigidBody Constraints are applied
Actual result: the RigidBody Constraints are not applied
Reproducible with: 2019.3.0a2, 2019.3.13f1, 2020.1.0b8, 2020.2.0a10
Not reproducible with: 2017.4.40f1, 2018.4.22f1, 2019.3.0a1
Notes:
Changing the PlayerParent transform Z value from 0.81 to 0.8 prevents this issue
Removing the unparenting line in the Movement.cs script(line 155) prevents this issue
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
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Resolution Note:
The rotational DoFs are applied in the mass-space, and looking carefully one might notice that there is non-identity inertia tensor rotation. It's non-zero because the centre of mass is shifted just a little. Setting it back to zero will fix this case.