add core:player component

This commit is contained in:
MihailRis
2025-09-06 22:30:01 +03:00
parent 854dcf2a50
commit 93e7ae159a
5 changed files with 132 additions and 92 deletions
@@ -18,7 +18,7 @@ function on_render()
if pid == -1 then
return
end
local rx, ry, rz = player.get_rot(pid, pid ~= hud.get_player())
rig:set_matrix(headIndex, mat4.rotate({1, 0, 0}, ry))
rig:set_matrix(bodyIndex, mat4.rotate({0, 1, 0}, rx))