diff options
author | sanine <sanine.not@pm.me> | 2023-05-16 16:01:26 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-05-16 16:01:26 -0500 |
commit | 52c760d39397bb5261981892e2ae2a87e21a2b3f (patch) | |
tree | 56fe282969f3c89eb9ce46fd7701b0dc9619f843 /main.lua | |
parent | b62b5ddd0cb781a7f83e489b1d5838a32e4b109b (diff) |
refactor collision system
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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{ |