From 14195dac1eda9140192ca07003258715b8b0abd3 Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 10 May 2023 23:59:04 -0500 Subject: implement basic floating-ray character controller --- scripts/character/collide.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/character/collide.lua (limited to 'scripts/character/collide.lua') diff --git a/scripts/character/collide.lua b/scripts/character/collide.lua new file mode 100644 index 0000000..1ac6cff --- /dev/null +++ b/scripts/character/collide.lua @@ -0,0 +1,6 @@ +require 'honey.std' + +return function(db, self, other, point) + local tbl = ode.ContactGeomTable(point) + print(tbl.pos, tbl.normal, tbl.depth, tbl.g1, tbl.g2) +end -- cgit v1.2.1