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
Syntax
public class BufferedLinearInterpolatorQuaternion : BufferedLinearInterpolator<Quaternion>
Remarks
This is a buffered linear interpolator for a Quaternion type value
Fields
IsSlerp
Declaration
public bool IsSlerp
Field Value
Type | Description |
---|---|
Boolean |
Remarks
When using half precision (due to the imprecision) using Lerp is less processor intensive (i.e. precision is already "imprecise"). When using full precision (to maintain precision) using Slerp is more processor intensive yet yields more precise results.
Methods
Interpolate(Quaternion, Quaternion, Single)
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 | |
Quaternion | end | |
Single | time | The time value used to interpolate between start and end values (pos) |
Returns
Type | Description |
---|---|
Quaternion | The interpolated value |
Overrides
InterpolateUnclamped(Quaternion, Quaternion, Single)
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 | |
Quaternion | end | |
Single | time | The time value used to interpolate between start and end values (pos) |
Returns
Type | Description |
---|---|
Quaternion | The interpolated value |