public void UpdateCurves()
 {
     pointCurve    = new Vector3Animation(points.ToArray(), times.ToArray());
     rotationCurve = new RotationAnimation(rotations.ToArray(), times.ToArray());
     zoomCurve     = new AnimationCurve();
     for (int i = 0; i < zooms.Count; i++)
     {
         zoomCurve.AddKey(new Keyframe(times[i], zooms[i]));
     }
 }
Exemple #2
0
		public void UpdateCurves()
		{
			pointCurve = new Vector3Animation(points.ToArray(), times.ToArray());
			rotationCurve = new RotationAnimation(rotations.ToArray(), times.ToArray());
			zoomCurve = new AnimationCurve();
			for(int i = 0; i < zooms.Count; i++)
			{
				zoomCurve.AddKey(new Keyframe(times[i], zooms[i]));
			}
		}