- Ray 射线
- 举例:
- 举例:
Ray 射线
射线的结构描述。
Ray是具有开始点和方向的无穷线。
| 变量 | 说明 |
|---|---|
| direction | 射线的方向。 |
| origin | 射线的原点。 |
| 公共函数 | 说明 |
|---|---|
| GetPoint | 返回射线上指定距离的点。 |
举例:
using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour {public Ray r;void Example() {print(r.GetPoint(10));}}
?
