summaryrefslogtreecommitdiff
path: root/scripts/rotate.lua
diff options
context:
space:
mode:
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