Search Issue Tracker
Fixed
Votes
0
Found in
5.3.4f1
Issue ID
788881
Regression
No
[Physics2D][ContactPoint2D] collider and otherCollider return values are swapped
Repro steps:
1) Open the project I attached and test.scene in it
2) Notice 2 circles and 2 spheres
3) Play the scene and move the left circle to collide with the right one
4) Open up the console
5) Notice that the 3rd and 4th Log message in the console is mixed up (game object ThisOne has the script attached)
6) Open CollisionManager.cs and look at 3rd and 4th Debug.Log messages
7) Notice ContactPoint2D.collider returns otherCollider gameobject and ContactPoint2D.otherCollider returns collider gameobject
8) Doesn't happen with 3D spheres as it has thisCollider instead (analogical script attached to the left sphere)
Expected behaviour: ContactPoint2D.collider returns gameObject with the attached collider
Actual: collider and otherCollider of ContactPoint2D is mixed up
Reproduced in: 5.4.0b15; 5.3.4p4; 5.2.4f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment