Collision and Traverse

Return to General Discussion

Collision and Traverse

Postby Vincent22 » Sat Jan 14, 2012 10:12 am

Hi everybody.

I have a question: there is a way to detect collisions between two collision solid?
I have two models and I want to detect when they collide, I use two polygon collision solid and Panda3d give me the error: "Invalid attempt to detect collision from CollisionPolygon".

I can't use a sphere for one of this model because of their shapes. How can I solve the problem?

Thank you
Posts: 14
Joined: Mon Apr 04, 2011 5:03 am

Postby drwr » Sat Jan 14, 2012 10:33 am

You will have to use a sphere for one of them, or you will have to use some different collision engine than Panda's. Perhaps ODE or Bullet will help here.

Panda's own collision engine does not support polygon-polygon collision tests. Usually, you don't want to do this anyway, because it's so much more expensive than sphere-polygon or sphere-sphere, but if you really do need this, then you need something more powerful than the built-in collisions.

Posts: 11425
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest