Hi,
I exported a model from Blender that I initially imported from mixamo.
I used the GLTFLoader to import it to my three.js scene.
The animation is just a running action. It works well, but I would like to make the character run through a certain distance. For example, n times the actual action.
I believe that I have to create new clips with the right keyframe tracks values and times but I don’t understand the values to do the right math.
Indeed, for each part of the body, I have the keyframes for the position, quaternion, and scale like that
“mixamorigHips.position”
“mixamorigHips.quaternion”
“mixamorigHips.scale”
“mixamorigSpine.position”
“mixamorigSpine.quaternion”
“mixamorigSpine.scale”
“mixamorigSpine1.position”
“mixamorigSpine1.quaternion”
“mixamorigSpine1.scale”
and so on…
I tried to understand the values by adding an arrowHelper at each time with (x,y,z) that I have from .position keyFrameTracks and then apply
the quaternion that I have from .quaternion keyFrameTracks but I have weird results.
I don’t take into account the .scale par as the values are always 1
Repo : GitHub - kasra0/threejs-animation
Could you please explain to me how to achieve what i want ?
Is it the right way of doing it ?
Thanks