adding AMotors works! added test to managed_objects.lua

git-svn-id: svn://anubis/anaglym/trunk@236 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2010-01-31 02:19:37 +00:00
1 parent 50cb363151
commit f07e0b69f3
4 files changed
+47 -14

No files matched your search

+6
View File
@@ -37,5 +37,11 @@ function key_down_event(key)
init_obj(sphere)
elseif (key == "q") then
ag.exit()
elseif (key == "r") then
-- creating a rotating cube
local box = ag.createBox(1, 1, 1)
init_obj(box)
ag.createAMotor(0, box,
{ x = 0, y = 0, z = 1, vel = 10, fmax = 10 })
end
end