What is the best way to implement Fortnite-style third person camera and movement?
I am very new to Unity but I am wondering the best logic to use.
Fortnite always has a crosshair in the middle of the screen. The controls appear to be as follows:
W - move forward A - strafe left S - strafe right D - move backward
The WASD keys do not rotate the player model. The direction/rotation of the model and camera is done by the mouse, and the crosshair always stays in the center of the screen.
As a newb I am struggling to figure out how to implement this. The WASD movement is fairly straight forward, but I'm struggling with the crosshair/mouse/camera logic.
The crosshair should be used to point to objects for aiming and item pickups. Should I be using a 2D gui image for the crosshair which always stays in the center of the screen, and then have a raycast shoot directly center from the camera? And then when the mouse moves, simply rotate the camera while similtaneously rotating the character? Should everything revolve around the position of the raycast? I'm lost.
Any help would be appreciated.