# Setting up a Footstep Surface Object

{% hint style="info" %}
**Note:** If you want to create you own Footstep Surface Object, you can do so by seeing the [Creating a Footstep Surface Object](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-profiles-and-objects/footstep-surface-object/creating-a-new-footstep-surface-object) section.
{% endhint %}

{% hint style="warning" %}
Ensure you have properly set up your AI's Footsteps Component before proceeding. If you have not done so, please see the [Setting up the Footsteps Component](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-optional/footsteps-component/setting-up-the-footsteps-component) section.
{% endhint %}

## Setting up a Footstep Surface Object

To set up a Footstep Surface Object, you will need to choose whether you want your Footstep Surface Object to use Tags or Textures. Tags are received from the Unity tag of the detected game object upon a successful footstep. Textures are received from the texture of a Unity Terrain upon a successful footstep. Both of these use the current footstep's position.

If the Unity tag or textures are detected at the footstep's current position, that Surface Footstep Object will be used and its Step Sounds, Step Effects, and Footprints will be used.

{% hint style="info" %}
**Note:** You can hover over each setting to view a tooltip description of it.
{% endhint %}

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2Fl8CEdYZ4IU2Ftb7JYxVc%2FTextureFootstepSurfaceExample.png?alt=media&#x26;token=7d65d5e8-e44e-45bb-9bf2-9d36aa9ca5b8" alt=""><figcaption></figcaption></figure>

### Footstep Effects and Footprints Setup

Your Step Effects and Footprint objects need to have their local up axis facing up (when their rotation is 0,0,0). You can refer to the included Step Effect and Footprint object for an example of this.

{% hint style="warning" %}
**Important:** Ensure that [Unity's Toggle Tool Handle Rotation](https://docs.unity3d.com/Manual/PositioningGameObjects.html) is set to local and that the green arrow is facing up when all rotations are set to 0. This allows the footstep effects and footprints to spawn correctly.
{% endhint %}

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2FufM8fvHRt4qrUOp9fhyB%2FRotation%200%20Footstep.png?alt=media&#x26;token=b0813632-7c79-4304-9d27-eaaf0ba5fdae" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2FfRtsUVuRL6QwSUTE7INW%2FLocal%20Y%20Up%20Footstep.png?alt=media&#x26;token=f4f42b3a-0828-4b3e-a1ab-b3184c7b540d" alt=""><figcaption></figcaption></figure>
