summaryrefslogtreecommitdiff
path: root/scripts/character/cameraDistance.lua
blob: 436b4a3afc293522590c52e7b5a406a0e7900383 (plain)
1
2
3
4
5
6
require 'honey.std'

return function(db, id, data)
	local node = db:getComponent(id, "node")
	node.matrix:translate(Vec3{0, 0, data.yoffset})
end