#1
|
|||
|
|||
Collision detection
Hi
I’ve got a strange problem in the following code: Code:
foot1=viz.add('Foot.ive', scale = [.05,.05,.05]) foot=viz.add('Foot.ive', scale = [.05,.05,.05]) foot1.collideBox(.005,.005,.005) foot1.disable(viz.DYNAMICS) foot1.enable(viz.COLLIDE_NOTIFY) foot.collideBox(.05,.005,.05) foot.disable(viz.DYNAMICS) foot.enable(viz.COLLIDE_NOTIFY) def onCollideBegin(e): if box in viz.phys.intersectNode(foot1): print "Yes you touched the box by foot1" if box in viz.phys.intersectNode(foot): print "Yes you touched the box by foot1" viz.callback(viz.COLLIDE_BEGIN_EVENT,onCollideBegin) Is there anybody can advice where is my problem? Thanks, Moh |
|
|
Similar Threads | ||||
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 detection with haptic pen | mjabon | Vizard | 3 | 01-17-2008 06:35 PM |
collision detection? | Colin | Vizard | 5 | 05-16-2007 04:52 PM |
Walking avatars --> collision detection? | sjroorda | Vizard | 3 | 10-13-2005 04:47 AM |