Function: approach()
function approach(
current: Vec3Tuple,
target: Vec3Tuple,
alpha: number
): Vec3Tuple;
Defined in: xrblocks-uiextensions/src/follow-math.ts:50
Move current toward target by alpha, returning the new position.
Parameters
| Parameter | Type |
|---|---|
current | Vec3Tuple |
target | Vec3Tuple |
alpha | number |
Returns
Vec3Tuple