mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add core:player component
This commit is contained in:
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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue