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
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)
Comments (1)
-
PandaArcade
Jun 02, 2024 02:36
Please update the docs to say 'One cannot rely on the order of Colliders in a pair'.
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
- Brush Size in the Inspector window does not update when the Brush Size in Scene View is changed
- "ArgumentOutOfRangeException" errors are thrown every time a keyboard key is pressed when renaming a component in UI Builder with a symbol and changing the name after label attribute warning
- Values in "Rect Transform" component are only partially updated when changing values in Prefab Mode
- Same Asset Type Focused Inspectors do not repaint when menus are manipulated
- Bool or Trigger Parameters can be selected via right clicking to the right of a Parameter control in the Animator Window
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.