1
0
Fork 0

Attempt to fix sliding by disabling self-asassinating feature

This commit is contained in:
epCode 2023-05-30 14:22:48 -07:00
parent ae486fa525
commit d491046409
1 changed files with 2 additions and 1 deletions

View File

@ -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