Author: ArcRiley Date: 2008-03-04 15:20:25 -0500 (Tue, 04 Mar 2008) New Revision: 1029
Modified: trunk/pysoy/examples/test_blocks.py Log: another test for Jon Modified: trunk/pysoy/examples/test_blocks.py =================================================================== --- trunk/pysoy/examples/test_blocks.py 2008-03-04 20:13:29 UTC (rev 1028) +++ trunk/pysoy/examples/test_blocks.py 2008-03-04 20:20:25 UTC (rev 1029) @@ -55,6 +55,7 @@ wcn['close'] = soy.actions.Quit() if __name__ == '__main__' : + c = 0 while True: sleep(.01) for bk in bks : @@ -63,9 +64,15 @@ v = [v[0], v[1], v[2]] if abs(p[0]) > 5 and ((p[0]>0 and v[0]>0) or (p[0]<0 and v[0]< 0)) : v[0] = v[0]*-1 + c = c + 1 + print 'bump %d' % c if abs(p[1]) > 5 and ((p[1]>0 and v[1]>0) or (p[1]<0 and v[1]< 0)) : v[1] = v[1]*-1 + c = c + 1 + print 'bump %d' % c if abs(p[2]) > 5 and ((p[2]>0 and v[2]>0) or (p[2]<0 and v[2]< 0)) : v[2] = v[2]*-1 + c = c + 1 + print 'bump %d' % c bks[bk].velocity = v _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn