Two animation at the same time


Hello guys, I have two animations for camera, one is control camera position, another one is control camera target, I want to run two animation at the same time, is it possible?

thanks.

Yes, it is possible to have two animations playing at the same time: Combining Animations | Babylon.js Documentation (babylonjs.com)

You can also link them together using AnimationGroups: Grouping Animations | Babylon.js Documentation (babylonjs.com)

1 Like

Hi. 1)If you animate camera properties directly you loose camera controls on canvas. You can animate helpers like transform node and attach at start camera and target to this helpers and animate helpers, after animation detach camera and target from helpers. 2) if you use create and start animation you can simply call this functions and all execute immediately.

1 Like