GetPoint(float)
Returns a point at distance units along the ray.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public Vector3 GetPoint(float distance)
Parameters
Returns
Type | Description |
|---|---|
| Vector3 |
Examples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { Ray r = new Ray(); print(r.GetPoint(10)); // a point 10 units along the ray }}