summaryrefslogtreecommitdiff
path: root/scripts/rotate.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-05-16 22:51:17 -0500
committersanine <sanine.not@pm.me>2023-05-16 22:51:17 -0500
commit4b2507b2f30d50c8673f33179c2b537ac83da3bf (patch)
treef30fef03ada16c56e638f7955b1d01de676fda13 /scripts/rotate.lua
parentfae263bc315f1c44cbcf399f58c92e23f0968747 (diff)
add basic collision geom visualizations
Diffstat (limited to 'scripts/rotate.lua')
-rw-r--r--scripts/rotate.lua4
1 files changed, 4 insertions, 0 deletions
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