Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ControllerColliderHit.point

Switch to Manual
public var point: Vector3;

Description

The impact point in world space.

	// print the point we impacted
	function OnControllerColliderHit(hit : ControllerColliderHit) {
		Debug.Log("I impacted at: " + hit.point);
	}