Search Issue Tracker

By Design

Votes

0

Found in

2021.2

2021.2.0b5

2022.1

Issue ID

1356219

Regression

No

Modifiable Contact Pair order is swapped when in build

Physics

-

How to reproduce:
1. Open the user's attached project
2. Press the Play button
3. Observe the sphere movement in the Game view
4. Build and Run the project
5. Observe the sphere movement in the build

Expected result: the direction of the sphere's motion is consistent between the Editor and the build
Actual result: the direction of the sphere's motion is different between the Editor and the build

Reproducible with: 2021.2.0b11, 2022.1.0a7
Could not test with: 2019.4.30f1, 2020.3.17f1, 2021.1.20f1 (error CS0246: The type or namespace name 'ModifiableContactPair' could not be found)

  1. Resolution Note:

    The order of GameObject initialisation can be different Editor vs Player, and this shows here apparently. On closer examination, turned out the SphereCollider/MeshCollider order was different here, so that's why the behaviour didn't match. One cannot rely on the order of Colliders in a pair.

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.