Fortnite-style camera and movement

by kjdion84   Last Updated March 13, 2018 02:13 AM

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.

Related Questions

Smooth Camera Follow

Updated August 03, 2015 14:45 PM

GTA style camera - Unity

Updated March 03, 2017 18:13 PM

Problem with camera movement

Updated April 08, 2017 16:13 PM

Unity 2D Diablo style movement

Updated March 15, 2016 08:05 AM