how to ignore collisions of children of an object code example
Example: how to ignore collisions of children of an object
public class IgnoreChildCollisions : MonoBehaviour
{
// I Manually populated this array
public Collider2D[] children;
void Start()
{
}
// Update is called once per frame
void Update()
{
foreach(Collider2D child in children)
{
foreach(Collider2D c in children)
{
Physics2D.IgnoreCollision(child, c);
}
}
}
}