diff options
author | sanine <sanine.not@pm.me> | 2023-05-16 22:51:17 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-05-16 22:51:17 -0500 |
commit | 4b2507b2f30d50c8673f33179c2b537ac83da3bf (patch) | |
tree | f30fef03ada16c56e638f7955b1d01de676fda13 /scripts | |
parent | fae263bc315f1c44cbcf399f58c92e23f0968747 (diff) |
add basic collision geom visualizations
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/rotate.lua | 4 |
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 |