Ray.GetPoint 获取点

function GetPoint (distance : float) : Vector3

Description描述

Returns a point at distance units along the ray.

返回沿着射线在distance距离单位的点。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public Ray r;
	public void Awake() {
		print(r.GetPoint(10));
	}
}
var r : Ray;
// a point 10 units along the ray
//沿着射线在10单位的一个点
print( r.GetPoint (10) ); 
Page last updated: 2010-12-23