remove yaw clamping, causes mob jitters
This commit is contained in:
parent
a88222a744
commit
54cb8f487e
12
api.lua
12
api.lua
@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20221125",
|
version = "20221128",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||||
}
|
}
|
||||||
@ -356,16 +356,6 @@ function mob_class:set_yaw(yaw, delay)
|
|||||||
yaw = 0
|
yaw = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
-- clamp our yaw to a 360 range
|
|
||||||
if deg(self.object:get_yaw()) > 360 then
|
|
||||||
|
|
||||||
yaw = rad(10) ; delay = 0
|
|
||||||
|
|
||||||
elseif deg(self.object:get_yaw()) < 0 then
|
|
||||||
|
|
||||||
yaw = rad(350) ; delay = 0
|
|
||||||
end
|
|
||||||
|
|
||||||
delay = mob_smooth_rotate and (delay or 0) or 0
|
delay = mob_smooth_rotate and (delay or 0) or 0
|
||||||
|
|
||||||
if delay == 0 then
|
if delay == 0 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user