No longer collide gun rays with areas

This commit is contained in:
Sofia 2026-08-06 19:56:05 +03:00
parent a34884fb27
commit 71c5ca7947

View File

@ -39,7 +39,6 @@ pub fn cast_ray(
ray.set_hit_back_faces(false); ray.set_hit_back_faces(false);
ray.set_hit_from_inside(false); ray.set_hit_from_inside(false);
ray.set_collide_with_bodies(true); ray.set_collide_with_bodies(true);
ray.set_collide_with_areas(true);
ray.set_exclude(&exclude); ray.set_exclude(&exclude);
if let Some(world) = world if let Some(world) = world
&& let Some(mut space) = world.get_direct_space_state() && let Some(mut space) = world.get_direct_space_state()