From eafff1e04eb7f6a63818db035d2c6a277c5c364c Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 18 May 2023 22:23:42 -0500 Subject: visualize collisions --- scripts/update.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/update.lua (limited to 'scripts/update.lua') diff --git a/scripts/update.lua b/scripts/update.lua new file mode 100644 index 0000000..906fc17 --- /dev/null +++ b/scripts/update.lua @@ -0,0 +1,6 @@ +return function(db, id, dt) + local node = db:getComponent(id, "node") + --local t = honey.glfw.GetTime() + --node.matrix[2][4] = 2*math.sin(2*t) + node.matrix:rotateZ(math.pi*dt) +end -- cgit v1.2.1