PDA

View Full Version : rigid bodies to not collide with each other


ruddiger52
12-04-2008, 10:03 PM
I have a brick wall that i am smashing a sphere through. I am getting a lot of interpenetrating so i am trying to have the ridgid bodies only collide with the passive sphere and not each other. Is there a way to get the rigid bodies not to collide with each other?

Aikiman
12-05-2008, 12:40 AM
Stick em on different collision layers. This should help you...



string $rigids[] = `ls -sl -dag -type rigidBody`;
//print $rigids;
for ($i=0; $i < size($rigids); $i++) {
setAttr ($rigids[$i] + ".collisionLayer") $i;
}



just make sure whatever has to collide with everything has a collision layer of -1.

CGTalk Moderation
12-05-2008, 12:40 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.