Author: EricStein Date: 2007-07-05 04:12:15 -0400 (Thu, 05 Jul 2007) New Revision: 365
Added: trunk/pysoy/tests/collide_field.py Log: Test for collision activated fields. Added: trunk/pysoy/tests/collide_field.py =================================================================== --- trunk/pysoy/tests/collide_field.py (rev 0) +++ trunk/pysoy/tests/collide_field.py 2007-07-05 08:12:15 UTC (rev 365) @@ -0,0 +1,26 @@ +#!/usr/bin/env python +from time import sleep +import soy +sce = soy.Scene() +cam = soy.bodies.Camera(sce) +cam.position = (0,0,13) +py1 = soy.bodies.Pyramid(sce) +py1.position = (-2,0,0) +py1.shape = soy.shapes.Sphere(1) +py1.velocity = (0,0.7,0) +py2 = soy.bodies.Pyramid(sce) +py2.position = (0,0,0) +py2.shape = soy.shapes.Sphere(1) +py2.velocity = (0,0.7,0) +py3 = soy.bodies.Pyramid(sce) +py3.position = (2,0,0) +py3.shape = soy.shapes.Sphere(1) +py3.velocity = (0,0.7,0) +scr = soy.Screen() +win = soy.Window(scr, size=(640,480)) +pro = soy.widgets.Projector(win, size=(640,480), camera=cam) +m = soy.bodies.fields.Monopole(sce) +m.position=(3,4.8,0) +m.shape=soy.shapes.Sphere(4.4) +m.multiplier=4 +sleep(15) Property changes on: trunk/pysoy/tests/collide_field.py ___________________________________________________________________ Name: svn:executable + * _______________________________________________ PySoy-SVN mailing list [email protected] http://www.pysoy.org/mailman/listinfo/pysoy-svn
