Hello, I have several characters in my scene and the problem is that when they move they are colliding with each other.
I tried attaching this script to the characters, but still they collide:
function Start() {
ignoreCollision("Player");
}
function ignoreCollision(tag: String) {
var objects = GameObject.FindGameObjectsWithTag(tag);
for (o in objects) {
if (o.GetComponent("Collider") o != gameObject) Physics.IgnoreCollision(collider, o.collider);
}
}
So what script should I write?
Thanks.