Being testing for while to find out how to make a camera follow a side of an object. For instance if i had a cube with 3 different camera angle buttons; main camera button faces the front, side camera angle will face the side and the 3rd angle button will face above.
The problem is having a rotation button included, a user can rotate a cube object then can decide to click the side button after. This will then activate the side camera but the user will not see that side due to the rotation moving the position instead it could potentially see a corner.
Is it possible for a camera to targer a side object and following where ever it turn ?
If you set up a camera as a child of the object it is supposed to follow, its position will always be relative to the parent object. That’s exactly the bahavior you want.
1 Like
Thanks for the reply but unfortunately in my case it did not work.
It should look something like this. If you then turn the cube, it definitely turns the cameras with it.

I believe its to do with the project i am working on the 3d gameobject is imported from a external software
Hmm. In that case, create an empty game object, import the external 3d object as a child of this empty game object and use the empty game object as a wrapper to turn instead of the gameobject itself. The cameras should be children of the empty object then.
I don’t see how this changes anything.
Please volunteer more information and it will be easier for people to help you:
- Screenshots of what’s happening
- Screenshots of your object hierarchy
- Scripts you’re currently using for camera following
1 Like