|
|
@@ -387,12 +387,15 @@ export default class AnimationEditor extends THREE.EventDispatcher{
|
|
|
|
|
|
if(percent2 <= 1){
|
|
|
let position2 = curve.getPointAt(percent2);
|
|
|
+ position2.add(key.path.edge.position)
|
|
|
pathQua = math.getQuaFromPosAim(position2, position)
|
|
|
}else{
|
|
|
percent2 = percent - delta
|
|
|
let position2 = curve.getPointAt(percent2);
|
|
|
+ position2.add(key.path.edge.position)
|
|
|
pathQua = math.getQuaFromPosAim(position, position2)
|
|
|
}
|
|
|
+
|
|
|
|
|
|
pathQua.multiplyQuaternions( pathQua, rot90Qua ); //这是当模型导进来就旋转正确时的quaternion
|
|
|
key.curQua_ = pathQua.clone() //记录下
|