Struct Interpolator
- Namespace
- Netick
- Assembly
- Netick.dll
A struct that is used to obtain interpolation data for a network property.
public struct Interpolator
- Inherited Members
Constructors
Interpolator(Entity, int*, int, float, int)
public Interpolator(Entity entity, int* s, int offsetInWords, float precision, int vectorFloatFieldsCount)
Parameters
Fields
Precision
public readonly float Precision
Field Value
Methods
GetInterpolationDataPtr(InterpolationSource, out int*, out int*, out float)
public bool GetInterpolationDataPtr(InterpolationSource interpolationSource, out int* from, out int* to, out float alpha)
Parameters
interpolationSource
InterpolationSourcefrom
int*to
int*alpha
float
Returns
GetInterpolationData<T>(InterpolationSource, int, out T, out T, out float)
Tries to obtain interpolation data for this frame. This is the array version.
public bool GetInterpolationData<T>(InterpolationSource interpolationSource, int index, out T from, out T to, out float alpha) where T : unmanaged
Parameters
interpolationSource
InterpolationSourceindex
intfrom
Tto
Talpha
float
Returns
- bool
Returns true if there was interpolation data for this frame.
Type Parameters
T
GetInterpolationData<T>(InterpolationSource, out T, out T, out float)
Tries to obtain interpolation data for this frame.
public bool GetInterpolationData<T>(InterpolationSource interpolationSource, out T from, out T to, out float alpha) where T : unmanaged
Parameters
interpolationSource
InterpolationSourcefrom
Tto
Talpha
float
Returns
- bool
Returns true if there was interpolation data for this frame.
Type Parameters
T