Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

Recorder pseudoalgorithm

Simon Pinfold edited this page Apr 19, 2015 · 1 revision
float frameDuration;

Update(){
	frameDuration += Time.deltaTime;
	if (frameDuration > recordingFrameDurationMin)
	{
		Snapshot s;
		// populate pos, rot etc. from player
		s.duration = frameDuration
		
		// add s to list
		frameDuration = 0
	}

}
Clone this wiki locally