From 52c760d39397bb5261981892e2ae2a87e21a2b3f Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 16 May 2023 16:01:26 -0500 Subject: refactor collision system --- main.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.lua') 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{ -- cgit v1.2.1