Incorrect raycast results against CollisionPolygon2D with build_mode = BUILD_SOLIDS
#32
Labels
bug
Something isn't working
build_mode = BUILD_SOLIDS
#32
Describe the bug
Raycasts sometimes tunnel through polygon shapes with the "Solids" build mode.
To Reproduce
I've attached a project demonstrating the behavior. Simply move the mouse around to see the difference between raycasting against solids vs segments.
Expected behavior
Raycasts against polygons with
build_mode = BUILD_SOLIDS
should behave approximately the same as raycasts against polygons withbuild_mode = BUILD_SEGMENTS
.Screenshots
Blue = Raycast result against segments
Orange = Raycast result against solids
Environment
RaycastDemo.zip
The text was updated successfully, but these errors were encountered: