feat: players interpolation & add hud.set_allow_pause(...)
This commit is contained in:
@@ -19,7 +19,7 @@ function on_render()
|
||||
return
|
||||
end
|
||||
|
||||
local rx, ry, rz = player.get_rot(pid)
|
||||
local rx, ry, rz = player.get_rot(pid, true)
|
||||
rig:set_matrix(headIndex, mat4.rotate({1, 0, 0}, ry))
|
||||
rig:set_matrix(bodyIndex, mat4.rotate({0, 1, 0}, rx))
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ local Skeleton = {__index={
|
||||
set_visible=function(self, i, b) return __skeleton.set_visible(self.eid, i, b) end,
|
||||
get_color=function(self) return __skeleton.get_color(self.eid) end,
|
||||
set_color=function(self, color) return __skeleton.set_color(self.eid, color) end,
|
||||
set_interpolated=function(self, b) return __skeleton.set_interpolated(self.eid, b) end,
|
||||
}}
|
||||
|
||||
local function new_Skeleton(eid)
|
||||
|
||||
Reference in New Issue
Block a user