AnimationClip #3230
Unanswered
kimeunseoo
asked this question in
Q&A
AnimationClip
#3230
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi :)
I'm really beginner with three.js.. so I need your help. my 3D model has one action, and I'm trying to control the movement of my model using GSAP ScrollTrigger along with the action. So I used this code, but my action always returns null.
i appreciate your support! Please help me!!
useEffect(() => {
if (group.current) {
// create QuaternionKeyframeTrack
const createQuaternionAnimation = () => {
const trackName = '.quaternion';
const times = [0, 1, 2];
const values = [
}
}, [group]);
useEffect(() => {
console.log(mixer)
if (mixer) {
mixer.update(0);
mixer.timeScale = 1;
*** const action = mixer.clipAction('quaternionAnimation');
if (action !== null) {
action.play();
}else{
console.log("not found")
}**
}
}, [mixer]);
Beta Was this translation helpful? Give feedback.
All reactions