View Single Post
  #3  
Old 04-29-2005, 08:21 AM
baf1 baf1 is offline
Member
 
Join Date: Mar 2005
Posts: 6
so i got the collision detection working with 2 simple objects but when i add a more complicated object:

c1 = viz.add('mvlpuma-waist.wrl')
c2 = c1.addchild('mvlpuma-shoulder.wrl')
c3 = c2.addchild('mvlpuma-upperarm.wrl')
c4 = c3.addchild('mvlpuma-forearm.wrl')
j1 = c4.addchild('mvlpuma-joint.wrl')
j2 = j1.addchild('mvlpuma-joint.wrl')
j3 = j2.addchild('mvlpuma-gripper.wrl')

tube = viz.add('object.wrl')

and want to detect a collision between the 'tube' and the last child on the parent ('mvlpuma-gripper.wrl'), it doesnt work. ive tried collidemesh and collide sphere, and it appears that no matter which one i choose (c1, c2...j3) vizard is always only detecting a collision between c1 and tube. how can i get vizard to detect the collision i want?
Reply With Quote