【发布时间】:2019-05-13 16:30:10
【问题描述】:
我想通过 KeyFrameTracks 显示两个不同的立方体。以下示例 KeyFrame Three.js 代码已被采用。如何集成通过 KeyFrameTracks 移动的第二个动画立方体?谢谢
// create an animation sequence with the tracks
// If a negative time value is passed, the duration will be calculated from the times of the passed tracks array
var clip = new THREE.AnimationClip( 'Action', 3, [ scaleKF, positionKF, quaternionKF, colorKF, opacityKF ] );
// setup the AnimationMixer
mixer = new THREE.AnimationMixer( mesh );
// create a ClipAction and set it to play
var clipAction = mixer.clipAction( clip );
clipAction.play();
【问题讨论】: