ControllerColliderHit.point 碰撞点

var point : Vector3

Description描述

The impact point in world space

在世界坐标空间的碰撞点。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnControllerColliderHit(ControllerColliderHit hit) {
		Debug.Log("I impacet at: " + hit.point);
	}
}
// print the point we impacted
//打印碰撞点
function OnControllerColliderHit(hit : ControllerColliderHit) {
	Debug.Log("I impacet at: " + hit.point);
}
Page last updated: 2010-12-23