mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix player rotation
This commit is contained in:
parent
efa5a5be2b
commit
39fcc10dd8
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ function on_render()
|
|||
return
|
||||
end
|
||||
|
||||
local rx, ry, rz = player.get_rot(pid, true)
|
||||
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