Step 2 - FPSController

Adding the FPSController

FPSContainer Setup

When you add an FPSController it should have several items parented, see below:

  • Empty Parent as a container with:

  • FlashlightSwing

    • Flashlight_Spot

  • FPSController

    • MainCamera

      • ExamineCamera

      • Padlocks

Main Camera Setup

The entire MainCamera on the FPSController

Raylength

The distance the raycast can travel to an object, the lower the close you have to be to interact with an object

Layer Mask Interact

This needs to be set to "Interact" and can be created in the top right corner of the inspector by clicking the "Layer" dropdown

Layer To Exclude

You can add any other layer you wise to stop the raycast moving through, so you create a layer called "Walls" and add that layer but "EVERYTHING" is default

UI Crosshair

Add the "CrosshairUI" from the "Crosshair_Canvas" object in the "AK_Canvas_Container"

Last updated

Was this helpful?