Version: 2017.3
public Rigidbody rigidbody ;

説明

コントローラーがヒットしたリジッドボディ

リジッドボディに接触せず、静的コライダーに接触した場合は null

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnControllerColliderHit(ControllerColliderHit hit) { if (hit != null) hit.rigidbody.useGravity = true; } }