![]() |
|
#4
|
|||
|
|||
|
When the z coordinate of the ball is greater than 10 it will stop
Code:
def stopball(): pos = ball.getPosition() if pos[2] > 10: ball.disable(viz.PHYSICS) vizact.ontimer(0,stopball) |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stop for... loop | Johannes | Vizard | 20 | 04-01-2014 02:53 AM |
| How to stop vizact.move | Jerry | Vizard | 3 | 06-04-2009 05:25 PM |
| moving and object by mouse but don't know how to stop the movement | nlfrnassimi | Vizard | 8 | 04-26-2009 08:23 AM |
| how can I stop an action? | nlfrnassimi | Vizard | 4 | 02-13-2009 01:59 AM |
| When a video stop ? | djdesmangles | Vizard | 2 | 01-11-2007 05:15 PM |