Keeping two characters in focus in 3d?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By stan.wick.52

How would I make a camera follow one character and keep both characters in focus like the way the Naruto storm series do it, or most 3d fighting games?

not sure if i understood correctly but like, do you want to place 1 camera on the shoulder of p1 and make sure p2 is always visible?

rustyStriker | 2020-12-09 22:48

Yes. Exactly that

stan.wick.52 | 2020-12-10 14:10

So i had a look at this Naruto fighter and it had so many VFX during battles the camera trickery was hidden very well. Until the characters started running on walls was able to understand that the camera operated with these rules in mind

Firstly the camera tracks a point at the center of the combatants
Secondly the distance between them dictated a zoom in or out
Camera strafes left or right in a rotation of the combatants position and the central point

You’ve managed to pique my interest so will work on a demo

Wakatta | 2020-12-10 21:38

Thanks. I’ll try to work out camera movements with the information you provided

stan.wick.52 | 2020-12-10 22:38

:bust_in_silhouette: Reply From: gamedevshirious

This is an amazing tutorial by KidsCanCode

This is tutorial is for 2D but hopefully you can tweak the code to work for 3D

Hope it helps :slight_smile:

Thank you. Tweaking ahead

stan.wick.52 | 2020-12-14 07:53