mirror of
https://github.com/APercy/airutils
synced 2025-09-28 21:46:23 +02:00
touchy fixed
This commit is contained in:
parent
0bdd148a3c
commit
5d45c207a2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user