Search Issue Tracker

Duplicate

Votes

0

Found in

2018.4

2020.2

Issue ID

1264048

Regression

No

Rigidbody center of mass and inertia incorrect when deleting child GameObject with Collider

Physics

-

Reproduction steps:
1. Open attached project "RigidbodyInertia.zip" and scene "SampleScene"
2. Enter Play Mode
3. Delete 'Parent' -> 'Cube' GameObject
4. Observe Game View

Expected result: 'Cube (1)' GameObject remains stationary
Actual result: 'Cube (1)' GameObject moves

Reproducible with: 2018.4.25f1, 2019.4.5f1, 2020.1.0f1, 2020.2.0a19

Notes:
1. Issue does not reproduce when disabling the GameObject
2. Issue does not reproduce if Parent Rigidbody's Gravity is disabled
3. Issue does not reproduce when Parent GameObject is positioned away from its origin by either X or Z axes.

  1. This is a duplicate of issue #937998

    Inertia Tensor is not reset when a collider is removed

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.