AndreaCatania 7 лет назад
Родитель
Сommit
207af6c4f9
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      scene/3d/ray_cast.cpp

+ 2 - 0
scene/3d/ray_cast.cpp

@@ -217,6 +217,8 @@ void RayCast::_update_raycast_state() {
 		against_shape = rr.shape;
 	} else {
 		collided = false;
+		against = 0;
+		against_shape = 0;
 	}
 }