Kanda Interactions 0.7.1
Loading...
Searching...
No Matches
MovablePredictionUtils Class Reference

Static Public Member Functions

static float GetTickDifference (NetworkTick currentTick, float currentFraction, NetworkTick lastAppliedTick, float lastAppliedFraction)
 Gets the difference between two ticks with fractions (to support client-side partial ticks).
 

Member Function Documentation

◆ GetTickDifference()

static float GetTickDifference ( NetworkTick currentTick,
float currentFraction,
NetworkTick lastAppliedTick,
float lastAppliedFraction )
inlinestatic

Gets the difference between two ticks with fractions (to support client-side partial ticks).

Parameters
currentTickThe current server tick integral.
currentFractionThe current server tick fraction.
lastAppliedTickThe server tick integral to compare against.
lastAppliedFractionThe server tick fraction to compare against.
Returns
The tick difference. Can be negative if current tick is older than last applied tick.

The documentation for this class was generated from the following file: