MK/Tekken style camera in Unity

I’d like to know if this is possible to do in Unity 3d…

I am working on a fighting game that is similar to Mortal Kombat and Tekken. (players move side to side on a 2D plane within a 3D field)

I am bouncing between doing this in Unity, and doing this in UDK. I need to first get to a point where I can get the camera setup correctly on the scene to be a locked camera that views both players on the screen at the same time, zooming out when they are further apart, and zooming in when they are closer.

Any help??

Yes it’s possible in Unity, you just program it to do what you want. A simple lerp for the camera based on distance between the two objects would do it, though you probably want to build in some slack so every tiny change doesn’t cause the camera to zoom.

–Eric

Try this script here