forked from MineClone5/MineClone5
Merge remote-tracking branch 'origin/testing'
This commit is contained in:
commit
f8ea963fe5
|
@ -227,8 +227,12 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- mob rotation
|
-- mob rotation
|
||||||
entity.object:set_yaw(entity.driver:get_look_horizontal() - entity.rotate)
|
local rotate = entity.rotate
|
||||||
entity.yaw = entity.driver:get_look_horizontal() - entity.rotate
|
if rotate then
|
||||||
|
local yaw = entity.driver:get_look_horizontal() - rotate
|
||||||
|
entity.yaw = yaw
|
||||||
|
entity.object:set_yaw(yaw)
|
||||||
|
end
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
if can_fly then
|
if can_fly then
|
||||||
|
|
Loading…
Reference in New Issue