Third person camera rotation

how do i make my camera rotate with mouse controols, while playing :’<<

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

my current camera controls doesn’t rotate the camera view around my character while playing :’<<

Hi @marymarzx,

It looks like the entity you have your movement script on is a child of the player, so it will move up, down, left and right, independently of the player. That script doe snot control rotation.

Take a look at this example project. It might suit your needs better:

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

It has a pair of scripts to achieve the camera movement you are looking for, and you can see in the editor how it is setup.

You will want to look at CameraMovement.js and PlayerMovement.js in the projects Scripts folder.

I hope this is helpful.