Skip to content

Commit

Permalink
Merge pull request #46795 from angad-k/use_collision_mask_in_vehicle_…
Browse files Browse the repository at this point in the history
…raycast

use collision mask in vehicle raycast
  • Loading branch information
akien-mga authored Mar 8, 2021
2 parents 8507b69 + bfc533f commit ee13944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/vehicle_body_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ee13944

Please sign in to comment.