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
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
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.