mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue