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)
The problem is that the collision detection function can detect the collision with foot and could not detect the collision with the other foot
Is there anybody can advice where is my problem?
Thanks,
Moh