Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

ControllerColliderHit.point

public Vector3 point;

Description

The impact point in world space.

using UnityEngine;

public class Example : MonoBehaviour { void OnControllerColliderHit(ControllerColliderHit hit) { // print the impact point Debug.Log("I impacted at: " + hit.point); } }

Did you find this page useful? Please give it a rating: