From 14195dac1eda9140192ca07003258715b8b0abd3 Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 10 May 2023 23:59:04 -0500 Subject: implement basic floating-ray character controller --- scripts/character/cameraDistance.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/character/cameraDistance.lua (limited to 'scripts/character/cameraDistance.lua') 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 -- cgit v1.2.1