Camera doesn't work. :/

Hello.
This is my problem:

The camera’s orbit doesn’t work after the animation.

Double click on the cube for camera animation.

https://playcanvas.com/editor/scene/615561

Thanks for the help.

You set activat to true when you create the path which starts the path animation and updates the camera position every frame. However, when it finishes, activat is still true and overwrites any position the camera is set at by any other scripts. If you set it to false after it reaches the end of its path, it should be fine.

Thanks for the reply @yaustar .
Now I can orbit but it does not update the position well :confused:

The Orbit Camera will also have it’s own values for distance and angle from the pivot point. There is a resetAndLookAtEntity function which should be called at the end of the path animation to set the camera in the correct position with the Orbit Camera code.