Blending between two poses in Three.js

Hello,
So I’m making a game with Three.js, similar to what I sent in the GIF:
game

I made a lot of progress, but I can’t get this animation working…
I would like to transition the character between two poses (reaching left and right), based on the user’s position on the canvas.
I tried to do something similar to this example:
https://threejs.org/examples/#webgl_animation_skinning_additive_blending

Can someone help me, how can I make these “additive action weight changes” on my model?
Thank you for your help in advance.

SkinnedMesh – three.js docs (threejs.org)

Skeleton – three.js docs (threejs.org)

1 Like