Class BufferedLinearInterpolatorQuaternion
Solves for incoming values that are jittered Partially solves for message loss. Unclamped lerping helps hide this, but not completely
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public class BufferedLinearInterpolatorQuaternion : BufferedLinearInterpolator<Quaternion>
Remarks
This is a buffered linear interpolator for a Quaternion type value
Fields
IsSlerp
Use Slerp(Quaternion, Quaternion, float) when true. Use Lerp(Quaternion, Quaternion, float) when false
Declaration
public bool IsSlerp
Field Value
Type | Description |
---|---|
bool |
Remarks
When using half precision (due to the imprecision) using Lerp(Quaternion, Quaternion, float) is less processor intensive (i.e. precision is already "imprecise"). When using full precision (to maintain precision) using Slerp(Quaternion, Quaternion, float) is more processor intensive yet yields more precise results.
Methods
Interpolate(Quaternion, Quaternion, float)
Method to override and adapted to the generic type. This assumes interpolation for that value will be clamped.
Declaration
protected override Quaternion Interpolate(Quaternion start, Quaternion end, float time)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | start | The start value (min) |
Quaternion | end | The end value (max) |
float | time | The time value used to interpolate between start and end values (pos) |
Returns
Type | Description |
---|---|
Quaternion | The interpolated value |
Overrides
InterpolateUnclamped(Quaternion, Quaternion, float)
Method to override and adapted to the generic type. This assumes interpolation for that value will not be clamped.
Declaration
protected override Quaternion InterpolateUnclamped(Quaternion start, Quaternion end, float time)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | start | The start value (min) |
Quaternion | end | The end value (max) |
float | time | The time value used to interpolate between start and end values (pos) |
Returns
Type | Description |
---|---|
Quaternion | The interpolated value |