示例#1
0
 public void Reset()
 {
     _inputHistory.Clear();
     _serverHistory.Clear();
     _posError       = 0f;
     _rotError       = 0f;
     _posErrorSmooth = 0f;
     _rotErrorSmooth = 0f;
 }
    private void ClearBuffers()
    {
        for (int i = 0; i < _predictionBuffer.Length; i++)
        {
            _predictionBuffer[i] = new RigidbodyState();
        }

        _historyBuffer.Clear();
        _historyBuffer.Enqueue(RigidbodyState.ToImmutable(_body, Time.fixedTime));
    }
示例#3
0
 public override IByteBuf Clear()
 {
     InternalBuffer.Clear();
     return(this);
 }
示例#4
0
 public override ICircularBuffer <T> RunActual(ICircularBuffer <T> obj0)
 {
     obj0.Clear();
     return(obj0);
 }
示例#5
0
 public void Clear()
 {
     _localDictionary.Clear();
     _persistantDictionary.Clear();
     _localKeyQueue.Clear();
 }
示例#6
0
 /// <inheritdoc />
 public void Clear()
 {
     _buffer.Clear();
 }