mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
add core:player component
This commit is contained in:
parent
854dcf2a50
commit
93e7ae159a
5 changed files with 132 additions and 92 deletions
|
|
@ -6,6 +6,7 @@
|
|||
"jump_force": 8.0
|
||||
}
|
||||
},
|
||||
"core:player",
|
||||
"base:player_animator"
|
||||
],
|
||||
"hitbox": [0.6, 1.8, 0.6]
|
||||
|
|
|
|||
|
|
@ -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