drawing capped cylinders now (i think)

git-svn-id: svn://anubis/anaglym/trunk@125 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop committed 2009-10-27 14:56:06 +00:00
1 parent 869e6465cc
commit 3ee41bfa9f
2 files changed
+24 -3

No files matched your search

+5 -2
View File
@@ -19,11 +19,14 @@ camx, camy, camz, cx, cy, cz = ag.getCamera()
ball = ag.loadModel("checkerball")
ball:setPosition(2*camx - cx, 2*camy - cy, 2*camz - cz)
function key_down_event(key)
if (key == "space") then
function mousebutton_down_event(button)
local function button1()
local newball = ball:clone()
newball:setPosition(camx, camy, camz)
force = 10000
newball:addForce(force * (cx-camx), force * (cy-camy), force * (cz-camz))
end
if (button == 1) then
button1()
end
end