Exclure an object to collide with another object? !

hi,

how to prevent two Objects to collide with each others ?!

thanks.

Im pretty new to unity myself but can explain a bit more?

Has it to do with pathfinding? Or crashing into an object?

Regards,

MisterEd.

actually , if u add a collider to an object, it becames a part of the dynamic system , so evrything would collide with it.

i need to prevent some object to collide with others without losing there dynamic caracterestics.

Like for example , my caracter will take an AXE , i don’t won’t my caracter to colide with this item otherwise it will change my caracters trajectory since it will try to avoid it .

i know that there’s a function to prevent that collision, but i forgot it …

thanks anyway.

Here it is , i found it :

function Start(){
Physics.IgnoreCollision(collider, ObjectToPrevent.collider);
}

To have two objects not collide:
Physics.IgnoreCollision( collider1, collider2 );

To alter layer collision settings (Unity 3.0):
Edit->Project Settings->Physics