Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.1.0p4

Issue ID

945434

Regression

No

Joint is attached but no longer functions when connected body is disabled and reenabled

Physics

-

To reproduce:
1. Open attached Unity project "DisablingConnectedObjects.zip"
2. Open "TestScene" scene
3. Go into Play mode
4. Disable AttachedBody GameObject
5. Reenable AttachedBody

Expected result: Upon disabling the AttachedBody GameObject, Fixed Joint component of the Anchor GameObject should change the Connected Body to None or missing, as AttachedBody is no longer connected after being reenabled.
Actual result: Fixed Joint still shows AttachedBody as its Connected Body, but that is no longer the case after it is reenabled

Reproduced on: 5.6.3f1, 2017.1.0p5, 2017.2.0b8, 2017.3.0a6

  1. Resolution Note:

    This happens because Rigidbody would create a new physics engine actor when you disable and enable it back. This new actor is never communicated to the joint component for perf reasons apparently. This won't be fixed until we redo our Rigidbody infrastructure to retain the physics engine actors when deactivating.

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.