You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some code that uses raycast2d over short distances that I expect to be similar to if I translated the aabb2 then did an intersection check.
What went wrong
I am getting some unexpected results with these raycasts. I get an unexpected value of a collision at distance 0.0 for two Aabb2ds that should be sufficiently far apart.
Here's a small unit test I wrote to do the raycast some other ways that do pass, then the last call I expected to be a None but it's a Some(0.0). The numbers were pulled directly from a live run of the program when the raycast2d returned an unexpected answer.
Bevy version
0.15.1
[Optional] Relevant system information
What you did
I have some code that uses raycast2d over short distances that I expect to be similar to if I translated the aabb2 then did an intersection check.
What went wrong
I am getting some unexpected results with these raycasts. I get an unexpected value of a collision at distance 0.0 for two Aabb2ds that should be sufficiently far apart.
Here's a small unit test I wrote to do the raycast some other ways that do pass, then the last call I expected to be a None but it's a Some(0.0). The numbers were pulled directly from a live run of the program when the raycast2d returned an unexpected answer.
The text was updated successfully, but these errors were encountered: