unity character controller ignore collision code example
Example: unity character controller ignore collision
Collider characterController = GetComponent<CharacterController>();
Collider otherCollider = otherGameObject.GetComponent<Collider>();
Physics.IgnoreCollision(characterController, otherCollider);