Moved camera code to Lua in its own file