Approximately the direction from the center of the capsule to the point we touch.
function OnControllerColliderHit(hit : ControllerColliderHit) { Debug.Log(hit.moveDirection); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void OnControllerColliderHit(ControllerColliderHit hit) { Debug.Log(hit.moveDirection); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def OnControllerColliderHit(hit as ControllerColliderHit) as void: Debug.Log(hit.moveDirection)