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
- Crash on SortByExecutionOrder when interrupting the .androidpack import process
- ShaderGraph tab header changes the icon to the VFX Graph icon when ShaderGraph and VFX Graph with the same name are both opened
- The Build Profiles window has usability issues when the panel takes up less than 30% of the screen width
- Inconsistent ShaderGraph RGBA channels compared to the Inspector when "Alpha Is Transparency" is used
- Crash on "The GUID inside 'Assets/asset.png.meta' cannot be extracted by the YAML Parser." when opening the project
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.