add modeltree:get_matrix, :set_matrix

This commit is contained in:
MihailRis
2024-07-02 22:13:16 +03:00
parent 8a10ed24da
commit 42ea88501d
7 changed files with 53 additions and 18 deletions
-2
View File
@@ -16,8 +16,6 @@ function on_hud_open()
local drop = entities.spawn("base:drop", ppos)
drop.rigidbody:set_vel(vec3.add(throw_force, vec3.add(pvel, DROP_INIT_VEL)))
drop.transform:set_rot(mat4.rotate(mat4.rotate(mat4.rotate({0, 1, 0}, math.random() * 360),
{1, 0, 0}, math.random() * 360), {0, 0, 1}, math.random() * 360))
end
end)
end