Camera Follows 2 Objects

Hi, I am making a wrestling game, and will like to know, how to make the camera follow the 2 wrestlers at all times. I want it setup where both wrestler are always visible to the cam, even with distance between the 2.

I think your going to need to resort to maths, and work out the distance between the fighters, and then point the camera halfway across the difference and depending on the distance, move the camera back if needed too.

But I could be completely wrong.

Perhaps unity has a function to deal with this auto-magically :slight_smile:

I would try to have a empty game object with a script that keep it in the middle of those 2 players

Then have the camera look at this object, and if the distance between the 2 players getting bigger move the camera backwards …

I have no idea how to make this so I can’t help you out with the scripting part :smile: