Search Issue Tracker
Duplicate
Votes
1
Found in
2017.3
2018.2.14f1
2018.3.0a1
2019.1.0a1
Issue ID
1098589
Regression
No
RaycastHit2D provides slightly incorrect centroid and distance values when casting Physics2D capsule, box or circle shapes
Steps to reproduce:
1. Open attached project "Physics Test.zip"
2. Play the Scene1
3. Press "a"
4. Look at the Console, also select "Hit Capsule" object in Scene to see that it's slightly inside the wall
Expected result: centroid is (2, 0), distance is 2, capsule is touching the wall
Actual result: centroid is (2.005, 0), distance is 2.005, capsule is slightly inside a wall
Reproducible: 2017.4.17f1, 2018.3.0f2, 2019.1.0a12
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
- 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
This is a duplicate of issue #1098169