Author: ArcRiley
Date: 2008-03-08 16:53:11 -0500 (Sat, 08 Mar 2008)
New Revision: 1103

Modified:
   trunk/pysoy/examples/blocks.py
   trunk/pysoy/examples/collide_blocks.py
Log:
Upgrading for soy.models


Modified: trunk/pysoy/examples/blocks.py
===================================================================
--- trunk/pysoy/examples/blocks.py      2008-03-08 18:55:42 UTC (rev 1102)
+++ trunk/pysoy/examples/blocks.py      2008-03-08 21:53:11 UTC (rev 1103)
@@ -82,11 +82,10 @@
     'Rhodonite'      : (soy.materials.Rhodonite(),     (-4, 1,-5)),
     'VelvetyRed'     : (soy.materials.VelvetyRed(),    ( 3, 0,-8)),
   }
-  bmesh = {}
   blocks = {}
   for color in colors :
-    bmesh[color] = BlockMesh(colors[color][0])
-    blocks[color] = soy.bodies.Body(sce, mesh=bmesh[color], 
+    blocks[color] = soy.bodies.Body(sce,
+                                    model=BlockMesh(colors[color][0]),
                                     position=colors[color][1])
     blocks[color].rotation = (srand(), srand(), srand())
     blocks[color].shape = soy.shapes.Box(1,1,1)

Modified: trunk/pysoy/examples/collide_blocks.py
===================================================================
--- trunk/pysoy/examples/collide_blocks.py      2008-03-08 18:55:42 UTC (rev 
1102)
+++ trunk/pysoy/examples/collide_blocks.py      2008-03-08 21:53:11 UTC (rev 
1103)
@@ -12,9 +12,7 @@
 #m = soy.bodies.fields.Monopole(sce)
 #m.shape=soy.shapes.Sphere(15)
 #m.multiplier=.01
-print 'test'
 bks = blocks.blocks(sce)
-print 'foo'
 fps = soy.textures.Print()
 
 scr = soy.Screen()

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

Reply via email to