diff options
Diffstat (limited to 'scripts/character/cameraDistance.lua')
-rw-r--r-- | scripts/character/cameraDistance.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/character/cameraDistance.lua b/scripts/character/cameraDistance.lua new file mode 100644 index 0000000..436b4a3 --- /dev/null +++ b/scripts/character/cameraDistance.lua @@ -0,0 +1,6 @@ +require 'honey.std' + +return function(db, id, data) + local node = db:getComponent(id, "node") + node.matrix:translate(Vec3{0, 0, data.yoffset}) +end |