public Vector3 GetPoint (float distance);

描述

返回射线上 distance 个单位处的点。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Ray r = new Ray(); print(r.GetPoint(10)); // a point 10 units along the ray } }