add entity:get_component(...)

This commit is contained in:
MihailRis
2024-07-04 20:54:45 +03:00
parent 8f379f2ee7
commit 019a88ef84
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -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