diff --git a/scene/3d/vehicle_body.cpp b/scene/3d/vehicle_body.cpp index 75cd0f5a92f..8d3206e714c 100644 --- a/scene/3d/vehicle_body.cpp +++ b/scene/3d/vehicle_body.cpp @@ -458,7 +458,7 @@ real_t VehicleBody::_ray_cast(int p_idx, PhysicsDirectBodyState *s) { PhysicsDirectSpaceState *ss = s->get_space_state(); - bool col = ss->intersect_ray(source, target, rr, exclude); + bool col = ss->intersect_ray(source, target, rr, exclude, get_collision_mask()); wheel.m_raycastInfo.m_groundObject = 0;