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; } }