Author: ArcRiley
Date: 2008-07-18 02:09:41 -0400 (Fri, 18 Jul 2008)
New Revision: 1331

Modified:
   trunk/pysoy/examples/LandScape.py
Log:
Ticket #929 :
  * better example with ball


Modified: trunk/pysoy/examples/LandScape.py
===================================================================
--- trunk/pysoy/examples/LandScape.py   2008-07-18 06:04:10 UTC (rev 1330)
+++ trunk/pysoy/examples/LandScape.py   2008-07-18 06:09:41 UTC (rev 1331)
@@ -11,13 +11,14 @@
 ### Start PySoy Code (Excerpt from pysoy-primer.py)
 # Initialize a window 
 scr = soy.Screen()
-win = soy.Window(scr, "A cube and landscape")
+win = soy.Window(scr, "A ball and landscape")
 
-# Create a cube with a shape, material and a body.
-cube = soy.shapes.Box(1, 1, 1) # Step 1: Shape
+# Create a ball with a shape, material and a body.
+ball = soy.shapes.Sphere(1)    # Step 1: Shape
 mat = soy.materials.Material() # Step 2: Material
 mat.shininess = 5 # (Optional) Looks nicer (modifies the applied specular 
lighting; play with this setting to see how it affects appearance)
-body = soy.bodies.Body(scene=heightScene, model=soy.models.Shape(mat), 
shape=cube, position=(0,5,0)) # Step 3: Body
+body = soy.bodies.Body(scene=heightScene, model=soy.models.Shape(mat), 
+                       shape=ball, position=(250,15,230)) # Step 3: Body
 global camera
 # Put a light and camera into the initialized screen
 light = soy.bodies.Light(heightScene)
@@ -25,7 +26,7 @@
 pro = soy.widgets.Projector(win, camera=camera)
 
 
-camera.position = (0, 1, 250.0) #50?
+camera.position = (250, 10, 250.0) #50?
 light.position = (0.5, 1.0, 5.0)
 heightScene.gravity = (0,-1,0)
 

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to