mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add Transform.dirty flag
This commit is contained in:
parent
df39a9a8f3
commit
d4460928e5
5 changed files with 29 additions and 10 deletions
|
|
@ -9,9 +9,9 @@ function on_hud_open()
|
|||
local ppos = vec3.add({player.get_pos(pid)}, {0, 0.7, 0})
|
||||
local throw_force = vec3.mul(vec3.add(player.get_dir(pid),
|
||||
{
|
||||
(math.random() - 0.5) * 5,
|
||||
(math.random() - 0.5) * 5,
|
||||
(math.random() - 0.5) * 5
|
||||
(math.random() - 0.5) * 1,
|
||||
(math.random() - 0.5) * 1,
|
||||
(math.random() - 0.5) * 1
|
||||
}), DROP_FORCE)
|
||||
|
||||
local drop = entity.spawn("base:drop", ppos)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue