How do you determine the center of two objects?

Hi! I’m having some trouble figuring out how to find the center point of two objects (In this case, two NPCs). Any suggestions on how I can achieve that?

It’s probably a really simple concept that is completely slipping my mind right now.

I haven’t tried anything yet as I’m not sure how to go about doing this. I couldn’t find any related topics on here (if you find any I’d would greatly appreciate if you can share that with me). I just need a basic idea or explanation to point me in the right direction. Any help is appreciated. Thanks!

More Info

Here’s a basic representation of what I’m struggling to do.

Further Explanation

The idea is that I want both NPCs to face each other, while having the camera focus on the middle of both NPCs (EX: Side view combat games). Getting them to face each other is simple enough to do, I just can’t think of a way to get the camera working.

1 Like

Find the average:

(Position A + Position B) / 2

5 Likes

I appreciate you, I can’t believe I forgot about that!