how to disable collsion between two rigidbodies?

Sudi
Posts: 7
Joined: Tue Jan 16, 2007 11:09 pm

how to disable collsion between two rigidbodies?

Post by Sudi »

Hello i tried out this physics api and was seriously empressed by it's functionality. But one thing i couldn't find.
I wanted to make a character moving in a world. The character is represented by a sphererigidbody which collides with the world geometrie. And then the character has bounding boxes for his arms legs and so on but the boxes shouldn't collide with the environment but with for example bullets. But these bullets shouldn't collide with the charactersphere......and i don'T see any switch to turn off collision dynamics between two rigidbodies.
Please help me on this one i really can't figure anything out.

sudi
TomaszZ
Posts: 4
Joined: Sat Jan 13, 2007 2:03 pm

Post by TomaszZ »

Look for collision groups:

m_carAxleF->getBroadphaseProxy()->m_collisionFilterGroup
m_carAxleF->getBroadphaseProxy()->m_collisionFilterMask
Sudi
Posts: 7
Joined: Tue Jan 16, 2007 11:09 pm

Post by Sudi »

Nad when i change the flag there will be no collsion detection between the two rigidbodies?