AppendSample
method in Coherence.Interpolation
Methods
public void AppendSample(T value, bool stopped, AbsoluteSimulationFrame sampleFrame, AbsoluteSimulationFrame localFrame)
Adds a sample to the sample buffer at the given frame.
Parameters
Type | Name | Description |
---|---|---|
T | value | The sample data. |
bool | stopped | The samples have stopped with this value. |
AbsoluteSimulationFrame | sampleFrame | The simulation frame at which the sample was generated by the entity authority. |
AbsoluteSimulationFrame | localFrame | The current simulation frame on this machine, i.e. NetworkTime.ClientSimulationFrame. |
public void AppendSample(T value, bool stopped, bool isSampleTimeValid, double sampleTime, double localTime)
Adds a sample to the sample buffer at the given time.
Parameters
Type | Name | Description |
---|---|---|
T | value | The sample data. |
bool | stopped | The samples have stopped with this value. |
bool | isSampleTimeValid | False if received sampleFrame is invalid. Possibly because the sample wasn't streamed directly from the authority client, but was actually sent from the RS cache when we moved our live query or floating origin |
double | sampleTime | The time at which the sample was generated by the entity authority. |
double | localTime | The current time on this machine, i.e. NetworkTime.TimeAsDouble. |