mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-20 14:04:10 +02:00
Merge pull request 'Uncommenting yaw change on go to pos. Breaks pathfinding.' (#2888) from bugfix/fix_pathfinding into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2888 Reviewed-by: epCode <epcode@noreply.git.minetest.land>
This commit is contained in:
commit
1d3f52004f
@ -2540,7 +2540,7 @@ local function go_to_pos(entity,b)
|
||||
local v = { x = b.x - s.x, z = b.z - s.z }
|
||||
local yaw = (atann(v.z / v.x) + pi / 2) - entity.rotate
|
||||
if b.x > s.x then yaw = yaw + pi end
|
||||
--entity.object:set_yaw(yaw)
|
||||
entity.object:set_yaw(yaw)
|
||||
set_velocity(entity,entity.follow_velocity)
|
||||
mcl_mobs:set_animation(entity, "walk")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user