Version: 2017.3

Ray.GetPoint

切换到手册
public Vector3 GetPoint (float distance);

描述

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Ray r; void Example() { print(r.GetPoint(10)); } }