touchy fixed

This commit is contained in:
Alexsandro Percy 2023-07-09 20:43:21 -03:00
parent 0bdd148a3c
commit 5d45c207a2

View file

@ -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