Collision between different shapes / same shapes.

steveh
Posts: 22
Joined: Mon Dec 19, 2005 3:15 pm

Collision between different shapes / same shapes.

Post by steveh »

Hi,
I've got a load of spheres droppping onto a static box and everything collides and works nicely. However, when I replace the spheres with boxes, the boxes drop straight through the static box. My app is based on the basicdemo sample and I've noticed the calls to registerCollisionCreateFunc(). There is no BoxToBox one. Some of the demos don't even call registerCollisionCreateFunc() at all and everything collides ok (Vehicle demo). Do I need to register collision functions for every possible combination of collision shape? Surely thats n^2 calls? Isn't there some default "collide any shape with any shape" call I can do?

Many thanks,


Steve.
steveh
Posts: 22
Joined: Mon Dec 19, 2005 3:15 pm

Post by steveh »

No worries, fixed it myself. The BasicDemo sets up collision handling to use its collision routines *only*.