This version of Unity is unsupported.

ControllerColliderHit.controller

public characterController controller;

Description

The controller that hit the collider.

using UnityEngine;

public class Example : MonoBehaviour { //Disable collision detection on CharacterControllers we touch. void OnControllerColliderHit(ControllerColliderHit hit) { hit.controller.detectCollisions = false; } }