From 4b2507b2f30d50c8673f33179c2b537ac83da3bf Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 16 May 2023 22:51:17 -0500 Subject: add basic collision geom visualizations --- scripts/rotate.lua | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 scripts/rotate.lua (limited to 'scripts') diff --git a/scripts/rotate.lua b/scripts/rotate.lua new file mode 100644 index 0000000..ef03349 --- /dev/null +++ b/scripts/rotate.lua @@ -0,0 +1,4 @@ +return function(db, id, dt) + local node = db:getComponent(id, "node") + node.matrix:rotateZ(2*math.pi*dt) +end -- cgit v1.2.1