Camera follow script

Hi everyone,

I need a script that can make a camera follow something, like an entity.
I don’t know if, previously, I sent a topic about this.

Hi @DudeDay012,

To have a camera follow an entity you can do so easily by adding the camera as a child to that entity. It will then automatically follow the movement of the entity.

For more complex behaviors take a look at some examples here:

https://developer.playcanvas.com/en/tutorials/?tags=camera

1 Like