[SOLVED] Where is fly-camera.js?

I see fly-camera.js referenced like this in the Fly example:

    // add the fly camera script to the camera
    this.app.assets.loadFromUrl('../../scripts/camera/fly-camera.js', 'script', function (err, asset) {
        camera.addComponent("script");
        camera.script.create("flyCamera");
    });

Where I can find that script?

Hello @Michael_McCrickard
I have never seen a fly-camera.js myself. But it is possible that there could be or you make one yourself. :thinking:

There is a fly-camera.js script in the project below, but I don’t know if this script works on the latest PlayCanvas version. It doesn’t seem to work on my mobile anymore.

https://playcanvas.com/editor/project/446623

1 Like

Hi @Michael_McCrickard,

You can find it here as well, along with other camera controllers:

4 Likes

Aha! Engine scripts! Thanks, @Leonidas.

1 Like