check for raycast

This commit is contained in:
Alexsandro Percy 2022-02-03 17:39:49 -03:00
parent 8912e64db2
commit ac3fcd7ded
2 changed files with 2 additions and 2 deletions

View File

@ -553,7 +553,7 @@ minetest.register_entity("automobiles_buggy:buggy", {
end
self._last_ground_check = self._last_ground_check + dtime
if self._last_ground_check > 0.15 then
if self._last_ground_check > 0.25 then
self._last_ground_check = 0
automobiles_lib.ground_get_distances(self, 0.372, 2.3)
end

View File

@ -526,7 +526,7 @@ minetest.register_entity("automobiles_roadster:roadster", {
end
self._last_ground_check = self._last_ground_check + dtime
if self._last_ground_check > 0.15 then
if self._last_ground_check > 0.25 then
self._last_ground_check = 0
automobiles_lib.ground_get_distances(self, 0.5, 2.422)
end