mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
touchy fixed
This commit is contained in:
parent
0bdd148a3c
commit
5d45c207a2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue