added ball object, incorporated into ballstairs.lua

git-svn-id: svn://anubis/anaglym/trunk@59 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2009-10-09 20:16:21 +00:00
parent 426d046dbc
commit aff4d93989
6 changed files with 3065 additions and 2 deletions

BIN
tests/ball.blend Executable file

Binary file not shown.

BIN
tests/ball.blend1 Executable file

Binary file not shown.

12
tests/ball.mtl Executable file
View File

@ -0,0 +1,12 @@
# Blender3D MTL File: ball.blend
# Material Count: 1
newmtl Material.001
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.800000 0.501059 0.064387
Ks 0.500000 0.500000 0.500000
Ni 1.000000
d 1.000000
illum 2

3047
tests/ball.obj Executable file

File diff suppressed because it is too large Load Diff

1
tests/ball.phy Executable file
View File

@ -0,0 +1 @@
sphere "Sphere" 1.000000 0.000000 0.000000 0.000000

View File

@ -9,11 +9,14 @@ function update()
end end
-- ag.setCamera(center[1] + dist, center[2] - dist, center[3] + dist, -- ag.setCamera(center[1] + dist, center[2] - dist, center[3] + dist,
-- center[1], center[2], center[3], 0, 0, 1) -- center[1], center[2], center[3], 0, 0, 1)
-- ag.doPhysics() ag.doPhysics()
ag.startFrame() ag.startFrame()
arena:draw() arena:draw()
ball:draw()
ag.endFrame() ag.endFrame()
end end
ag.setCamera(8, -8, 8, -8, 8, 4, 0, 0, 1) ag.setCamera(8, -8, 15, -8, 8, 4, 0, 0, 1)
arena = ag.loadStaticModel("boxarena") arena = ag.loadStaticModel("boxarena")
ball = ag.loadModel("ball")
ball:setPosition(-7, 8, 12);