Assets/Deps/emotitron/Network/NST/NSTFrameBuffer.cs
/// <summary>
/// Apply this when the end of an interpolation has happened, or when the local object sends out its regular frame update.
/// </summary>
Apply this when the end of an interpolation has happened, or when the local object sends out its regular frame update.
Apply this when the end of an interpolation has happened or when the local object sends out its regular frame update .
public void SnapshotToRewind(int index)
		{
			FrameElements frame = rewind[index];
			frame.endTime = Time.time;
			frame.rootPosition = nst.transform.position;
			for (int i = 0; i < frame.positionsElements.Count; i++)
			{
				frame.positionsElements[i] = nst.positionElements[i].Localized;
			}
			for (int i = 0; i < frame.rotationElements.Count; i++)
			{
				frame.rotationElements[i] = nst.rotationElements[i].Localized;
			}
			latestRewindFrame = frame;
		}
public void SnapshotToRewind ( int index ) { FrameElements frame = rewind [ index ] ; frame . endTime = Time . time ; frame . rootPosition = nst . transform . position ; for ( int i = 0 ; i < frame . positionsElements . Count ; i ++ ) { frame . positionsElements [ i ] = nst . positionElements [ i ] . Localized ; } for ( int i = 0 ; i < frame . rotationElements . Count ; i ++ ) { frame . rotationElements [ i ] = nst . rotationElements [ i ] . Localized ; } latestRewindFrame = frame ; }
Apply this when the end of an interpolation has happened, or when the local object sends out its regular frame update.
Apply this when the end of an interpolation has happened or when the local object sends out its regular frame update .
//frame.endTime = currentFrame.endTime; // Time.time;
index
int