Lerp
7/14/25Less than 1 minute
Quaternion.Lerp(Quaternion a, Quaternion b, number t)
Interpolates between a and b by t and normalizes the result afterwards. The parameter t is clamped to the range [0, 1].
Parameters:
| Name | Type | Description | 
|---|---|---|
| a | Quaternion | a | 
| b | Quaternion | b | 
| t | number | t | 
Returns:
| type | Description | 
|---|---|
| Quaternion | result | 
Usage
---@type Quaternion
local a;
---@type Quaternion
local b;
---@type number
local t;
local val0 = Quaternion:Lerp(a, b, t)
