mirror of
https://github.com/APercy/automobiles_pck
synced 2025-10-01 07:06:23 +02:00
check for raycast
This commit is contained in:
parent
8912e64db2
commit
ac3fcd7ded
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user