mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
feat: saving entities (WIP)
This commit is contained in:
parent
019a88ef84
commit
f0270d3391
24 changed files with 290 additions and 101 deletions
|
|
@ -6,5 +6,7 @@
|
|||
"triggers": [
|
||||
["aabb", -0.2, -0.2, -0.2, 0.2, 0.2, 0.2],
|
||||
["radius", 1.6]
|
||||
]
|
||||
],
|
||||
"save-rig-textures": true,
|
||||
"save-rig-pose": true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,6 @@ function on_hud_open()
|
|||
count=1
|
||||
}})
|
||||
local velocity = vec3.add(throw_force, vec3.add(pvel, DROP_INIT_VEL))
|
||||
drop.get_component("rigidbody"):set_vel(velocity)
|
||||
drop.rigidbody:set_vel(velocity)
|
||||
end)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ return {
|
|||
if callback then
|
||||
local result, err = pcall(callback)
|
||||
if err then
|
||||
--// TODO: replace with error logging
|
||||
print(err)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue