【发布时间】:2022-01-21 14:49:28
【问题描述】:
如何在three.js中获取动画的时长?
假设我们有一个像这样的样本,
var mixer = new THREE.AnimationMixer(gltf.scene)
gltf.animations.forEach((clip)) => {
let animation = mixer.clipAction(clip)
animation.setLoop(THREE.LoopOnce)
animation.clampWhenFinished = true
animation.play()
}
【问题讨论】:
标签: javascript three.js