Beginner Camera- Third Person

I have a ball that rolls by applying impulse to it. I want a camera to follow the ball through a simple platform level. However, if i attach a camera to the ball, the camera rotates with the ball’s rotation.

Is there a way to attach a camera to an entity, so that it follows the entity, while keeping the rotation that it is initially set at?

Yes you have to set an external camera (not as child of the ball) and with a script you make it follow. You can study the script of my camera in my project https://playcanvas.com/editor/scene/396696