feat: saving entities (WIP)

This commit is contained in:
MihailRis
2024-07-05 05:16:31 +03:00
parent 019a88ef84
commit f0270d3391
24 changed files with 290 additions and 101 deletions
+3 -1
View File
@@ -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
}
+1 -1
View File
@@ -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
+1
View File
@@ -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