![]() |
|
#4
|
|||
|
|||
|
Andrey,
Tasks can wait for a number of conditions, including events like COLLIDE_BEGIN_EVENT. Perhaps you want to do something like this? Code:
import viztask def doSomethingWhenCollidingTask(): while True: yield viztask.waitEvent(viz.COLLIDE_BEGIN_EVENT) print 'collidy !!!' #do something #........ yield viztask.waitTime(2) #ignore events for 2 seconds viztask.schedule(doSomethingWhenCollidingTask())
__________________
Paul Elliott WorldViz LLC |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vizard and Augmented Reality | realvision | Vizard | 4 | 04-04-2008 11:59 AM |
| Vizard won't run | wouters | Vizard | 5 | 02-05-2008 12:12 PM |
| Vizard 3.0 beta activation code | vnacooper | Vizard | 3 | 09-21-2006 01:03 PM |
| wxPython with Vizard | farshizzo | Vizard | 18 | 09-29-2005 09:49 AM |
| Vizard Crashes: causes are hard to determine, possible problem with the viz code | vr_boyko | Vizard | 1 | 01-07-2005 11:52 AM |