summaryrefslogtreecommitdiff
path: root/scripts/character/collide.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-05-10 23:59:04 -0500
committersanine <sanine.not@pm.me>2023-05-10 23:59:04 -0500
commit14195dac1eda9140192ca07003258715b8b0abd3 (patch)
treebb4e41153363c791d4a9c7948bc85e0d4f77bc98 /scripts/character/collide.lua
parent26bfc10ad0e8a355e9b02946dd31642f49a6ec60 (diff)
implement basic floating-ray character controller
Diffstat (limited to 'scripts/character/collide.lua')
-rw-r--r--scripts/character/collide.lua6
1 files changed, 6 insertions, 0 deletions
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