light improved and impact fixed

master
Alexsandro Percy 2022-05-03 14:07:18 -03:00
parent b447a476b1
commit be8f94c235
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -250,7 +250,7 @@ function pa28.testImpact(self, velocity, position)
if self._last_vel == nil then return end
--lets calculate the vertical speed, to avoid the bug on colliding on floor with hard lag
if abs(velocity.y - self._last_vel.y) > 2 then
local noded = mobkit.nodeatpos(mobkit.pos_shift(p,{y=-2.8}))
local noded = mobkit.nodeatpos(mobkit.pos_shift(p,{y=-1.52}))
if (noded and noded.drawtype ~= 'airlike') then
collision = true
else