From 5d45c207a22e4f5c895b8721654dc8db60fbde24 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sun, 9 Jul 2023 20:43:21 -0300 Subject: [PATCH] touchy fixed --- lib_planes/utilities.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_planes/utilities.lua b/lib_planes/utilities.lua index fb32bfe..1ca5b8f 100644 --- a/lib_planes/utilities.lua +++ b/lib_planes/utilities.lua @@ -329,7 +329,7 @@ function airutils.testImpact(self, velocity, position) if self._last_touch == nil then self._last_touch = 1 end if self._last_touch <= 1 then self._last_touch = self._last_touch + self.dtime end - if vertical_impact > 0.5 and self._longit_speed > self._min_speed/2 and self._last_touch >= 1 then + if vertical_impact > 1.0 and self._longit_speed > self._min_speed/2 and self._last_touch >= 1 then self._last_touch = 0 local noded = airutils.nodeatpos(airutils.pos_shift(p,{y=touch_point})) if (noded and noded.drawtype ~= 'airlike') then