Table of Contents

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

entity Entity
s int*
offsetInWords int
precision float
vectorFloatFieldsCount int

Fields

Precision

public readonly float Precision

Field Value

float

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 InterpolationSource
from int*
to int*
alpha float

Returns

bool

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 InterpolationSource
index int
from T
to T
alpha 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 InterpolationSource
from T
to T
alpha float

Returns

bool

Returns true if there was interpolation data for this frame.

Type Parameters

T