disable smooth rotation

This commit is contained in:
cora 2022-08-01 00:04:52 +02:00 committed by Gitea
parent 163e38eb51
commit 4bc6210fda
1 changed files with 4 additions and 1 deletions

View File

@ -311,7 +311,10 @@ end
-- set and return valid yaw -- set and return valid yaw
local set_yaw = function(self, yaw, delay, dtime) local set_yaw = function(self, yaw, delay, dtime)
if true then
self.object:set_yaw(yaw)
return yaw
end
if not yaw or yaw ~= yaw then if not yaw or yaw ~= yaw then
yaw = 0 yaw = 0
end end