![]() |
|
#1
|
|||
|
|||
HI Jeff ,Thank you very much for your help.
I cannot understand the collision in vizard although it looks very easy! ![]() I have struggled to detect the collision event by more than one way but all them did not work ![]() http://forum.worldviz.com/showthread.php?p=5599 but did not work with my code HTML Code:
def oncollide(e): if e.obj1 in ball: print 'colllision' viz.callback(viz.COLLIDE_BEGIN_EVENT,oncollide) Any suggestion would be appreciated! |
#2
|
|||
|
|||
obj1 is the node that generated the event and obj2 is the node that obj1 collided with
|
#3
|
|||
|
|||
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 ) HTML Code:
def onCollideBegin(e): if e.obj1 == rHandBox: if e.obj2 == box: box.color(colors.next()) viz.callback(viz.COLLIDE_BEGIN_EVENT,onCollideBegin) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Collision detection with specific models | just alex | Vizard | 1 | 02-06-2009 11:02 AM |
Collision Detection and Nearest Point to Probe | xabbu | Vizard | 2 | 01-06-2009 03:01 AM |
Collision with child nodes | rubberpimple | Vizard | 4 | 09-17-2008 04:27 PM |
Collision detection with haptic pen | mjabon | Vizard | 3 | 01-17-2008 06:35 PM |
collision events trigger | Eunice | Vizard | 1 | 01-03-2006 10:39 AM |