Merge pull request #46795 from angad-k/use_collision_mask_in_vehicle_raycast

use collision mask in vehicle raycast
This commit is contained in:
Rémi Verschelde 2021-03-08 17:30:14 +01:00 committed by GitHub
commit ee13944f9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,7 +407,7 @@ real_t VehicleBody3D::_ray_cast(int p_idx, PhysicsDirectBodyState3D *s) {
PhysicsDirectSpaceState3D *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 = nullptr;