WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-29-2008, 01:27 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
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
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 05:13 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC