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
- Shader warnings are thrown after building High Definition 3D template
- "EndLayoutGroup: BeginLayoutGroup must be called first" error is thrown when changing Shader Precision Model from the Build Profiles window
- White artifacts/outlines are visible in the Garden Scene when viewing at meshes from a distance
- Shader warnings "Sprite-Unlit-Default" are thrown after building 2D Platrformer Microgame Template
- [Android] HLSL shader becomes corrupted when running on an Android device
This is a duplicate of issue #1098169