format
typescript
Vector3.LerpUnclamped(lhs, rhs, t)class: Vector3
description
Performs a linear interpolation between vector lhs and vector rhs using parameter t.
There is no restriction on the value of t.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Vector3 | The starting vector. |
| rhs | Vector3 | The ending vector. |
| t | number | The interpolation coefficient, representing the proportion of interpolation between the start and end points. |
return
| type | description |
|---|---|
Vector3 | A new Vector3 object. |
code example
typescript
let from = new Vector3(1,2,3);
let to = new Vector3(3,4,5);
Debug.Log("LerpUnclamped is",Vector3.LerpUnclamped(from,to,5));