Method Update
Update(float, NetworkTime)
Convenience version of 'Update' mainly for testing the reason we don't want to always call this version is so that on the calling side we can compute the renderTime once for the many things being interpolated (and the many interpolators per object)
Declaration
public T Update(float deltaTime, NetworkTime serverTime)
Parameters
| Type | Name | Description |
|---|---|---|
| float | deltaTime | time since call |
| NetworkTime | serverTime | current server time |
Returns
| Type | Description |
|---|---|
| T | The newly interpolated value of type 'T' |
Update(float, double, double)
Call to update the state of the interpolators before reading out
Declaration
public T Update(float deltaTime, double renderTime, double serverTime)
Parameters
| Type | Name | Description |
|---|---|---|
| float | deltaTime | time since last call |
| double | renderTime | our current time |
| double | serverTime | current server time |
Returns
| Type | Description |
|---|---|
| T | The newly interpolated value of type 'T' |