|
@@ -59596,17 +59596,17 @@
|
|
|
var startQuaternion = this.quaternions[this.currentIndex];
|
|
|
quaternion = new Quaternion().copy(startQuaternion);
|
|
|
lerp.quaternion(quaternion, endQuaternion)(progress);
|
|
|
- var endPos = this.posCurve.points[this.currentIndex + 1];
|
|
|
- var startPos = this.posCurve.points[this.currentIndex];
|
|
|
- position = new Vector3().copy(startPos);
|
|
|
- lerp.vector(position, endPos)(progress);
|
|
|
+
|
|
|
+ /* let endPos = this.posCurve.points[this.currentIndex+1]
|
|
|
+ let startPos = this.posCurve.points[this.currentIndex]
|
|
|
+ position = (new THREE.Vector3()).copy(startPos)
|
|
|
+ lerp.vector(position, endPos)(progress) */
|
|
|
} else {
|
|
|
this.currentIndex = this.posCurve.points.length - 1;
|
|
|
quaternion = this.quaternions[this.currentIndex];
|
|
|
position = this.posCurve.points[this.currentIndex];
|
|
|
}
|
|
|
-
|
|
|
- //position = this.posCurve.getPointAt(percent); // 需要this.posCurve.points.length>1 否则报错
|
|
|
+ position = this.posCurve.getPointAt(percent); // 需要this.posCurve.points.length>1 否则报错
|
|
|
|
|
|
//console.log(this.currentIndex, originPercent)
|
|
|
//缓动:
|