use collision mask in vehicle raycast
(cherry picked from commit bfc533fc4c
)
This commit is contained in:
parent
bd15558768
commit
144749c31b
@ -458,7 +458,7 @@ real_t VehicleBody::_ray_cast(int p_idx, PhysicsDirectBodyState *s) {
|
|||||||
|
|
||||||
PhysicsDirectSpaceState *ss = s->get_space_state();
|
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;
|
wheel.m_raycastInfo.m_groundObject = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user