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
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.
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.