Thread: Collision
View Single Post
  #9  
Old 04-27-2009, 03:42 AM
Moh200jo Moh200jo is offline
Member
 
Join Date: Feb 2009
Posts: 99
it works fine. but i am trying to use the following lines to see the score
HTML Code:
data = viz.Data()
yield viztask.waitEvent( viz.COLLISION_EVENT, data )
but this does not work with the following event detection
HTML Code:
def onCollideBegin(e):
	if e.obj1 == rHandBox:
		if e.obj2 == box:
			box.color(colors.next())
viz.callback(viz.COLLIDE_BEGIN_EVENT,onCollideBegin)
any idea would be appreciated
Reply With Quote