From 144749c31bad182246d9f168b82bcab675ea2188 Mon Sep 17 00:00:00 2001 From: Angad Kambli Date: Mon, 8 Mar 2021 20:57:23 +0530 Subject: [PATCH] use collision mask in vehicle raycast (cherry picked from commit bfc533fc4c2d739a701eaf6f483b7b5907ef0ea2) --- scene/3d/vehicle_body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;