Class BufferedLinearInterpolatorVector3
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public class BufferedLinearInterpolatorVector3 : BufferedLinearInterpolator<Vector3>
Fields
IsSlerp
Use Slerp(Vector3, Vector3, float) when true. Use Lerp(Vector3, Vector3, float) when false
Declaration
public bool IsSlerp
Field Value
Type | Description |
---|---|
bool |
Methods
Interpolate(Vector3, Vector3, float)
Method to override and adapted to the generic type. This assumes interpolation for that value will be clamped.
Declaration
protected override Vector3 Interpolate(Vector3 start, Vector3 end, float time)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | start | The start value (min) |
Vector3 | end | The end value (max) |
float | time | The time value used to interpolate between start and end values (pos) |
Returns
Type | Description |
---|---|
Vector3 | The interpolated value |
Overrides
InterpolateUnclamped(Vector3, Vector3, float)
Method to override and adapted to the generic type. This assumes interpolation for that value will not be clamped.
Declaration
protected override Vector3 InterpolateUnclamped(Vector3 start, Vector3 end, float time)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | start | The start value (min) |
Vector3 | end | The end value (max) |
float | time | The time value used to interpolate between start and end values (pos) |
Returns
Type | Description |
---|---|
Vector3 | The interpolated value |