Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.2.14f1
2018.3.0a1
2019.1.0a1
2019.2.0a1
Issue ID
1111328
Regression
No
Position of the RaycastHit.point is inconsistent when using Physics.BoxCast and Box Collider
How to reproduce:
1. Open attached project "Case_1111328_repro.zip"
2. Open "123" scene
3. Enter Play Mode
4. Open Scene Window
5. Observe the red sphere that indicates the position of the RaycastHit.point position
Expected result: The red sphere is in the middle of the X and Y axes
Actual result: The red sphere is in the bottom left corner of the "Cube" Box Collider
Reproducible with - 2017.4.20f2, 2018.3.6f1, 2019.1.0b3, 2019.2.0a5
Notes: Change X or Y position of the "Cube" GameObject and notice how the position of the red sphere is correct once Physics.BoxCast and "Cube" Box Collider does not align perfectly.
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
- TreeView.AddItem performance regression when opening EditorWindow
- Shadows are not visible in Player when using DX12 with Forward+ or Deferred+ rendering in URP
- Rendering Debugger Playmode debug UI scrolling is jittery when using click and drag to scroll
- Frame Debugger Target Selection Search Results window becomes too tiny to even see the default “Editor” selection when there are no search results
- Async method in Play Mode being aborted when calling `new System.Windows.Forms.Form`
Resolution Note:
I wouldn't count on the hit point returned in this case because we have a face to face touch and any point returned that belongs to the intersection of faces would be correct formally speaking. As far as I could see, all the return results do belong to that intersection so it's not a bug per se I'm afraid.