Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2020.3.X, 2021.1.X

Votes

0

Found in

2018.4

2020.2.0b11

2021.1

Issue ID

1295676

Regression

No

Physics is interacting between the Scenes when Scenes are loaded with LoadSceneInPlayMode using localPhysicsMode

Scene Management

-

How to reproduce:
1. Open the user's attached "New Unity Project" project
2. Open the "Main" Scene
3. Enter the Play Mode
4. In the Game view press the "Load Scene" button twice

Expected results: The balls that were loaded after the second button press are not colliding with the balls loaded after the first button press
Actual results: All of the balls are colliding with each other

Reproducible with: 2018.4.30f1, 2019.4.16f1, 2020.1.17f1, 2020.2.0f1, 2021.1.0a9

Notes:
- Using "SceneManager.LoadScene" with the "localPhysicsMode" parameter works fine and the physics do not interact between different Scenes

With the fix, the scene is no longer simulation (by default) because local physics scenes can only be manually simulated. The very fact that they were supposed to be loaded into a separate scene but they continued to simulate showed that they were in-fact being loaded into the default (and automatically simulated) physics scene. You can manually simulate this but it isn't required. Ping me if you need more info - Melv.

  1. Resolution Note (fix version 2021.2):

    This was a scene management issue. Note that now these scenes are loaded into their own physics world, they no longer simulate automatically as both 2D/3D local physics worlds require manual simulation.

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.