Getting Started:

(Figure 2. Layers and Input Video Tutorial)

Layers and Input:

(*Refer to video tutorial as needed, Figure 2.)

Unity Input Documentation

Unity Layer Documentation

The following input axes need to be setup:

  1. Sidestep

    1. Positive Key: e

    2. Negative Key: q

  2. UpDown

    1. Positive Key: z

    2. Negative Key: x

The following layers need to be added:

  1. “Ground”

  2. “ProjectedPlayer”

  3. “CharacterRep”

  4. “DisableLand”

Disable the following collisions in the physics window:

  1. “CharacterRep : CharacterRep”

  2. “ProjectedPlayer : CharacterRep”

  3. “ProjectedPlayer : ProjectedPlayer”

  4. VERY IMPORTANT: the projected player is essentially a collider that is NOT visually representative of the character mesh. If you have other game implementations, like projectiles for example, that should only contact the character mesh, you will need to disable certain collisions with the “ProjectedPlayer”

Set the layer for the gameobjects as follows: (refer to hierarchy (Figure 1.) if necessary)

  1. Player – Layer: “ProjectedPlayer”

  2. Gyro (including children) – Layer: “CharacterRep”

  3. Any walkable surface – Layer: “Ground”

Set the layer masks as follows:

  1. Camera Collision Script located on Main Camera

    1. Camera Clip Layer

      1. Disable “ProjectedPlayer”

      2. Disable “CharacterRep”

  2. MultiStateCharacterController Script located on Player

    1. Ground Layer

      1. Enable only “Ground”

    2. Overhead Layer (Optional)

      1. Enable “Ground”

    3. Water Layer

      1. Enable only “Water”

    4. Ik Layer

      1. Enable “Ground”

      2. Enable separate IK Layers (Optional)

    5. Disable Land Layer

      1. Enable only “DisableLand”

Never miss an asset release! Subscribe to email notifications: