From b24a64fd45d71cfc18fea0e333906baceda031c8 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 9 May 2023 16:21:47 -0500 Subject: fix bug when getting components no entity has --- honey/ecs/collision.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'honey/ecs/collision.lua') diff --git a/honey/ecs/collision.lua b/honey/ecs/collision.lua index 722c256..5c0452b 100644 --- a/honey/ecs/collision.lua +++ b/honey/ecs/collision.lua @@ -26,6 +26,9 @@ local function createGeom(self, id, collision) print(normal, d) geom = ode.CreatePlane(self.space, normal[1], normal[2], normal[3], d) end + + ode.GeomSetData(geom, id) + collision._geom = geom collision._gc = honey.util.gc_canary(function() print("release geom for id"..id) -- cgit v1.2.1