Rigidbody move Character Controller

So I want to be able to have "certain" rigidbodies that collide with my charactercontroller to cause the character controller to move. I know that it kind of...defeats the purpose of using a character controller in the first place, but I would really just like to add some code on top of that to make it work, as opposed to making an entire rigidbody based charactercontroller. Thanks

Apply rigid body to your character and add this code for the object which is going to destroy and make effects for character.

//Apply a Player Transform to choose the character transform.

if (Vector3.Distance(player.transform.position, transform.position) < 15) { // Make player die HealthController hc = player.GetComponent(); hc.health = 0;

        // Make player fly into the air
        CharacterController cc = player.GetComponent<CharacterController>();
        cc.Move(((player.transform.position - transform.position).normalized * 15 + Vector3.up * 5) * Time.deltaTime);
    }