impact adjust

master
Alexsandro Percy 2022-05-03 12:00:45 -03:00
parent 0842ebe2d9
commit 30858eb5b9
1 changed files with 2 additions and 2 deletions

View File

@ -278,8 +278,8 @@ function pa28.testImpact(self, velocity, position)
end
end
if impact > 1.2 and self._longit_speed > 2 then
local noded = mobkit.nodeatpos(mobkit.pos_shift(p,{y=-2.8}))
if impact > 1.2 and self._longit_speed > 3 then
local noded = mobkit.nodeatpos(mobkit.pos_shift(p,{y=-1.5}))
if (noded and noded.drawtype ~= 'airlike') then
minetest.sound_play("pa28_touch", {
--to_player = self.driver_name,