anaglym/tests/rot_camera.lua
Josh Holtrop 2081cf7277 added ag::exit() and ag::import() to exit the lua script and import other lua modules
git-svn-id: svn://anubis/anaglym/trunk@146 99a6e188-d820-4881-8870-2d33a10e2619
2009-11-01 21:27:20 +00:00

6 lines
153 B
Lua

function rot_camera()
local angle = ag.elapsedTime() / 5000 * math.pi
ag.setCamera(15 * math.cos(angle), 15 * math.sin(angle), 12, 0, 0, 2)
end