summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 60cc174..b7562e2 100644
--- a/main.lua
+++ b/main.lua
@@ -8,10 +8,12 @@ honey.init()
local db = honey.ecs.EntityDb()
local systems = honey.ecs.SystemDb(db)
+local space = honey.ode.HashSpaceCreate(honey.ode.Space0)
systems:addSystems(honey.ecs.node.system)
systems:addSystems(honey.ecs.render.system)
systems:addSystems(honey.ecs.script.system)
+systems:addSystems(honey.ecs.collision.system, { space=space })
-- camera
db:createEntityWithComponents{