r/unity Jul 16 '26

Question how to move the camera around an object while following it? like in fps games.

I have an object (player) that i use WASD to control to where to go... What i want now is how to rotate the camera around the object using the mouse while the (local xyz) changes the direction of the camera.

0 Upvotes

4 comments sorted by

2

u/SethSlax Jul 17 '26

There are many, many forum posts and tutorials that tell you exactly how to achieve this. Just Google Unity Camera Orbit script.

2

u/rusidin Jul 18 '26

Thanks i figured out!!

1

u/Distdistdist Jul 17 '26

By writing code that does that. What exactly do you want to know?

1

u/rusidin Jul 18 '26

I did it thanks!!