13 return this.frames * this.count;
27 public void Generate()
29 this.vectors =
new Vector3[this.TotalFrame];
30 for (
int i = 0; i < this.count; i++)
32 for (
int j = 0; j < this.frames; j++)
34 float time = 1f / (float)this.frames * (
float)j;
35 Vector3 vector = (
new Vector3(this.curveX.Evaluate(time),
this.curveY.Evaluate(time),
this.curveZ.Evaluate(time)) + this.offset) * this.mtp;
36 this.vectors[i * this.frames + j] = vector;
42 public Vector3 GetVector(
int frame)
44 return this.vectors[frame];
48 private void OnValidate()
50 if (this.realtimeGenerate && this.generate)
59 AnimationCurve animationCurve = this.curveX;
60 this.curveX = this.curveY;
61 this.curveY = animationCurve;
71 public float interval;
77 public float randomMtp;
80 public float randomDelay;
89 public bool directional;
92 public bool realtimeGenerate;
95 public bool randomFlipX;
98 public Vector3 offset;
101 public Vector3[] vectors;
104 public AnimationCurve curveX;
107 public AnimationCurve curveY;
110 public AnimationCurve curveZ;