How to append animationClip inside Object3D.animations in three.js
I am loading a car model as model.glb using gltfLoader and getting the animation clips:
this.glbLoader.load('./model.glb', function (gltf) {
this.carMesh = gltf.scene
let allAnimations = gltf.animations
this.scene.add(this.carMesh)
}
Currently there are 3 animation clips and I want to add one more: const idleClip = new THREE.AnimationClip("idle", 3, [])
But how can I append this new clip into modal animations?