public void SetAnimSegment(AnimSegment animSeg, Vector3 firstPoint) { if (animSeg.pattern == null) { animSeg.pattern = defaultPattern; } animSeg.dataPoints[0] = animSeg.start; animSeg.dataPoints[1] = getOffsetPoint(new Vector3(animSeg.pattern.firstX, animSeg.pattern.firstY, animSeg.pattern.firstZ), firstPoint, animSeg.end); animSeg.dataPoints[2] = getOffsetPoint(new Vector3(animSeg.pattern.secondX, animSeg.pattern.secondY, animSeg.pattern.secondZ), firstPoint, animSeg.end); animSeg.dataPoints[3] = animSeg.end; animSeg.procAnimation = this; }
Vector3 GetEnd(AnimSegment seg) { if (!interupted) { return(seg.end); } else { interupted = false; if (interuptedNum == 0) { interuptedNum = 1; } return(seg.results[interuptedNum - 1]); } }