Quantcast
Channel: Questions in topic: "ragdoll"
Viewing all articles
Browse latest Browse all 565

Ignore Colliders of an Object

$
0
0
I am trying to make my player ignore a ragdoll. I have tagged all colliders in the ragdoll with "RagDoll" and the array does find them, but the actual ignoring is not quiet working....does anybody know what the problem is? public GameObject [] ignoringObjects; public string Tag = "RagDoll"; // Update is called once per frame void Update () { ignoringObjects = GameObject.FindGameObjectsWithTag(Tag); Debug.Log ("Updated RagDolls"); foreach(GameObject io in ignoringObjects) { Physics.IgnoreCollision(io.transform.collider, transform.collider); Debug.Log("Updated Ignore collision with RagDolls"); } } If someone could help me with this matter, it would be much appreciated! Thank you in advance.

Viewing all articles
Browse latest Browse all 565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>