Skip to content

Commit

Permalink
fix player rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Jan 29, 2025
1 parent efa5a5b commit 39fcc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion res/content/base/scripts/components/player_animator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 39fcc10

Please sign in to comment.