From 78d8efa4ac61bc7fd4d1e5bfb41193e9dece5c03 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 9 May 2023 16:31:39 -0500 Subject: handle collisions symmetrically --- honey/ecs/physics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'honey/ecs/physics.lua') diff --git a/honey/ecs/physics.lua b/honey/ecs/physics.lua index fe08359..9b22bd7 100644 --- a/honey/ecs/physics.lua +++ b/honey/ecs/physics.lua @@ -105,7 +105,7 @@ local function collide(self, a, b, collision) local idA = ode.GeomGetData(a) local idB = ode.GeomGetData(b) handleCollision(self.db, idA, idB) - --handleCollision(self.db, idB, idA) + handleCollision(self.db, idB, idA) -- set up the joint params local contact = ode.CreateContact{ surface={ -- cgit v1.2.1