AnimationAction.getMixer() 是 three.js 库中 AnimationAction 类的方法之一。该方法用于获取 AnimationMixer 实例,从而可以对该 AnimationAction 对象进行混合操作。
getMixer(): AnimationMixer;
无
返回一个 AnimationMixer 实例,用于混合该 AnimationAction 对象的帧数据。
// 创建一个 AnimationMixer 实例
const mixer = new THREE.AnimationMixer(object);
// 创建 AnimationAction 实例
const action = mixer.clipAction(animationClip);
// 获取 AnimationMixer 实例
const animationMixer = action.getMixer();