Hi folks, i got a problem making my plane explode on any collisions.
I did put the code below, but it isn’t working…
var projectile : Transform;
function Update () {
if (Input.GetButtonDown("Jump")) {
Instantiate(projectile, transform.position, transform.rotation);
Physics.IgnoreCollision(projectile.collider, transform.root.collider);
}
}
Well console said: Ignore collision failed. Both colliders need to be activated when calling this IgnoreCollision.
But both have colliders…and i don’t know what it means when it sais ‘activated’…
Can you help me to solve my problem?
Thank you !!