Closed rafelis1997 closed 6 months ago
This PR look to solve the problem addressed on the Issue 101: issue-101
The solution proposed by @Glavin001 seams to be great and solve the issue with good clean types reducing complexity on useAnimation hook.
.glb | .gltf
// ... interface GLTFAction extends THREE.AnimationClip { name: ActionName; } // ... type GLTFResult = GLTF & { nodes: { // ... } materials: { // ... } animations: GLTFAction[]; } // ... const { actions } = useAnimations(animations, group);
issue-101
What kind of problem this solves
Context
This PR look to solve the problem addressed on the Issue 101: issue-101
The solution proposed by @Glavin001 seams to be great and solve the issue with good clean types reducing complexity on useAnimation hook.
How to test
.glb | .gltf
fileIssue
issue-101