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)
-
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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.