I got a simple camera script for my top-down 3d game. I like the camera movement, but I don’t want it to rotate while it follows the character, simply move along 2 axis’s.
For example, picture a 2D pixel game. Possible?
public class CameraTrack : MonoBehaviour {
// Makes MainCamera follow character
public Transform target;
void Update () {
transform.LookAt(target);
}
}