Hi all,
I’m trying to find a way so that a cloth does not react to a specific object in the scene (the player).
I tried
function Start(){
blanket = GameObject.Find("blanket");
col = GameObject.FindGameObjectWithTag("Player").GetComponent(CharacterController);
}
function Update(){
Physics.IgnoreCollision(col, blanket.collider, true);
}
But all I get is " Ignore collision failed. Both colliders need to be activated when calling this IgnoreCollision". I also tried GetComponent(Collider) for the player but same result…
Is it possible to ignore collisions with a cloth?
Thanks for your help!