mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-30 23:03:45 +01:00
Attempt to fix sliding by disabling self-asassinating feature
This commit is contained in:
parent
ae486fa525
commit
d491046409
@ -355,9 +355,10 @@ function mob_class:set_yaw(yaw, delay, dtime)
|
|||||||
|
|
||||||
if math.abs(target_shortest_path_nums) > 5 then
|
if math.abs(target_shortest_path_nums) > 5 then
|
||||||
self.object:set_yaw(self.object:get_yaw()+(target_shortest_path*(3.6*ddtime)))
|
self.object:set_yaw(self.object:get_yaw()+(target_shortest_path*(3.6*ddtime)))
|
||||||
|
--[[
|
||||||
if self.acc then
|
if self.acc then
|
||||||
self.acc=vector.rotate_around_axis(self.acc,vector.new(0,1,0), target_shortest_path*(3.6*ddtime))
|
self.acc=vector.rotate_around_axis(self.acc,vector.new(0,1,0), target_shortest_path*(3.6*ddtime))
|
||||||
end
|
end]]
|
||||||
end
|
end
|
||||||
|
|
||||||
delay = delay or 0
|
delay = delay or 0
|
||||||
|
Loading…
Reference in New Issue
Block a user