private void CalcCurrentVelUsingSamples() { CurrentVelocity = new Vector3 (); foreach (Vector3 v in lastCamPanVelocities) CurrentVelocity += v; CurrentVelocity /= (float)lastCamPanVelocities.Count; }