Basically I wanted the camera ive set to follow my character rotation, position like this:
Although it follows the player like this:
The problem is in the code but idk how I can possibly change the angle of the camera and the axis position…
public class FollowPlayer : MonoBehaviour
{
public GameObject player;
void LateUpdate()
{
transform.position = player.transform.position - player.transform.forward * 15;
transform.LookAt(player.transform);
}
}
Basically I want the camera to follow the character position and rotation, which already does but not in the position I want