View Single Post
  #1  
Old 04-15-2005, 05:29 PM
vjosh vjosh is offline
Member
 
Join Date: Sep 2004
Posts: 17
Collision Detection for Hierarchies of Objects

Hey,

I'm having some trouble getting collision detection to work consistently with hierarchies of objects. I'll create a person and a ball with code like the following:
person = viz.add("male.cfg")
ball = person.add("ball.wrl")
ball.collidesphere(0.25)
After translating the ball to some location (using viz.ABSOLUTE_WORLD), I'll try to translate the person (also using viz.ABSOLUTE_WORLD), and the ball moves with the person as expected. But the problem is that the "collidingwith()" method thinks that the ball is still where I positioned it originally. As far as the collidingwith() method is concerned, the ball did not move with the person... Is there any way to fix this problem?

-Josh
Reply With Quote