drawing capped cylinders now (i think)
git-svn-id: svn://anubis/anaglym/trunk@125 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
1 parent
869e6465cc
commit
3ee41bfa9f
2 files changed
+24
-3
No files matched your search
+5
-2
@@ -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
|
||||
Reference in new issue
Block a user