use collision mask in vehicle raycast

(cherry picked from commit bfc533fc4c)
This commit is contained in:
Angad Kambli 2021-03-08 20:57:23 +05:30 committed by Rémi Verschelde
parent bd15558768
commit 144749c31b

View file

@ -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;