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:
parent
426d046dbc
commit
aff4d93989
BIN
tests/ball.blend
Executable file
BIN
tests/ball.blend
Executable file
Binary file not shown.
BIN
tests/ball.blend1
Executable file
BIN
tests/ball.blend1
Executable file
Binary file not shown.
12
tests/ball.mtl
Executable file
12
tests/ball.mtl
Executable 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
3047
tests/ball.obj
Executable file
File diff suppressed because it is too large
Load Diff
1
tests/ball.phy
Executable file
1
tests/ball.phy
Executable file
@ -0,0 +1 @@
|
||||
sphere "Sphere" 1.000000 0.000000 0.000000 0.000000
|
@ -9,11 +9,14 @@ function update()
|
||||
end
|
||||
-- ag.setCamera(center[1] + dist, center[2] - dist, center[3] + dist,
|
||||
-- center[1], center[2], center[3], 0, 0, 1)
|
||||
-- ag.doPhysics()
|
||||
ag.doPhysics()
|
||||
ag.startFrame()
|
||||
arena:draw()
|
||||
ball:draw()
|
||||
ag.endFrame()
|
||||
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")
|
||||
ball = ag.loadModel("ball")
|
||||
ball:setPosition(-7, 8, 12);
|
||||
|
Loading…
x
Reference in New Issue
Block a user