Playing multiple model animations?

What’s the correct way of playing all model animations with loop?

I’m currently doing it as:

    entity.addComponent("animation", {
    assets: pc.app.assets.find('somemodel').resource.animations,
    loop: true
    });

and it seems only to play first animation in animations array

Hi @Newbie_Coder,

You can only have a single animation playing at any instant, unless you use the newer anim component and blend layers (usually used for playing 2 animations e.g. upper body vs lower body).

(the animation component you are using here has been deprecated).

Maybe you are asking something different, play each animation one after the other?

Capture

Model has two bone structures
Each animation animates different part of the model

I think you need to either use the anim component with two different layers.

Or merge the two animations and create a single one that affects all bones.