Table of Contents

Struct FloatErrorCorrector

Namespace
Netick.Unity
Assembly
Netick.Unity.dll

Handles prediction error correction smoothing for a float.

public struct FloatErrorCorrector
Inherited Members

Fields

FloatError

public float FloatError

Field Value

float

FloatPreRollback

public float FloatPreRollback

Field Value

float

Methods

Init(float)

public void Init(float value)

Parameters

value float

OnPostResimulation(float)

public void OnPostResimulation(float currentValue)

Parameters

currentValue float

OnPreRollback(float)

public void OnPreRollback(float value)

Parameters

value float

Render(ref float, float, float, float)

public void Render(ref float interpolatedValue, float correctionMultiplier, float teleportThreshold, float deltaTime)

Parameters

interpolatedValue float
correctionMultiplier float
teleportThreshold float
deltaTime float