mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add entity:get_component(...)
This commit is contained in:
parent
8f379f2ee7
commit
019a88ef84
2 changed files with 6 additions and 5 deletions
|
|
@ -18,6 +18,7 @@ function on_hud_open()
|
|||
id=itemid,
|
||||
count=1
|
||||
}})
|
||||
drop.rigidbody:set_vel(vec3.add(throw_force, vec3.add(pvel, DROP_INIT_VEL)))
|
||||
local velocity = vec3.add(throw_force, vec3.add(pvel, DROP_INIT_VEL))
|
||||
drop.get_component("rigidbody"):set_vel(velocity)
|
||||
end)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue