Make mobs navigate even better

This commit is contained in:
oilboi 2020-06-22 19:47:45 -04:00
parent 03f57edd43
commit 363c6808b2

View File

@ -116,8 +116,6 @@ mobs.create_movement_functions = function(def,mob_register)
goal = vector.multiply(self.direction,self.speed)
acceleration = vector.new(goal.x-currentvel.x,0,goal.z-currentvel.z)
if self.whip_turn then
acceleration = vector.multiply(acceleration, 0.5)
self.whip_turn = self.whip_turn - dtime
if self.whip_turn <= 0 then
self.whip_turn = nil