mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
remove all glitchy shaking
This commit is contained in:
parent
090c5b086a
commit
a16e8f0403
1 changed files with 5 additions and 3 deletions
|
@ -365,11 +365,13 @@ local set_yaw = function(self, yaw, delay, dtime)
|
||||||
ddtime = dtime
|
ddtime = dtime
|
||||||
end
|
end
|
||||||
|
|
||||||
if math.abs(target_shortest_path) > 200*ddtime then
|
minetest.chat_send_all(math.abs(target_shortest_path))
|
||||||
|
|
||||||
|
if math.abs(target_shortest_path) > 280*ddtime then
|
||||||
if target_shortest_path > 0 then
|
if target_shortest_path > 0 then
|
||||||
self.object:set_yaw(self.object:get_yaw()+3*ddtime)
|
self.object:set_yaw(self.object:get_yaw()+1.5*ddtime)
|
||||||
else
|
else
|
||||||
self.object:set_yaw(self.object:get_yaw()-3*ddtime)
|
self.object:set_yaw(self.object:get_yaw()-1.5*ddtime)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue