Unity 6000.2 has reached its end of life and will not receive further updates. If you need additional fixes, please upgrade to a newer Unity version.
Unity 6.1 is no longer supported, as such this issue will not be handled on this release stream.
Unity 2022LTS is no longer supported
Unity 2021LTS is no longer supported
Reproduction steps:
1. Open the attached “BrokenCapsule.zip” project
2. Open the “BrokenRaycast” Scene
3. Enter the Play mode
4. Observe the Raycast lines in the Scene view
Expected result: The lines are green and text “Hit” is visible above the capsule
Actual result: The lines are red and text “Miss” is visible above the capsule
Reproducible on: Windows 10 (User reported), Windows 11
Not reproducible on: no other environment tested
Notes:
Also reproduces in the Player
Only reproduces when the capsule is in default position. The problem disappears when the capsule is rotated on X or Z axis or its position is changed
Moving the ray's origin backwards along its direction and increasing its Raycast length does not change the result. Moving the origin otherwise or changing the ray direction does make the Raycast a correct hit
Extending the rays further will create a hit when they reach the back face of the capsule
When extending the length of these rays that miss, they all intersect the edge between the cylinder and bottom hemisphere