Fixed, non-first person camera around an object

I need help on this.

I have a cube. I want to show that cube’s face one at a time, with a camera that turn around it depending on the side the user choose.

I don’t get the camera (I only ever used pre made scripts). How do I rotate the position of the camera and not the camera itself? I would like the camera to move on an (invisible) globe around the cube, but I can only rotate the camera “rotation”, not the position.

It’s been driving me crazy for two days now…

You can use transform.RotateAround to make an object orbit around a point. For a camera, you will also need transform.LookAt to keep the target object in view.

How do I love Unity!

This is what I was looking for! I have 20 pages open about Quaternion and Vector3 functions, I never though of looking in Transform. In retrospect, I probably should have :slight_smile:

Thanks!