> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/annex/integrations/astar-pathfinding.md).

# AStar Pathfinding

## Asset Location

{% hint style="info" %}

## [A\* Pathfinding](https://assetstore.unity.com/packages/tools/ai/a-pathfinding-project-pro-87744?aid=1100lHT6)

{% endhint %}

{% hint style="success" %}

### *Remember to have both packages on your project installed correctly*

{% endhint %}

## Integration package

After having both AC and A\*Pathfinding in your project. Install the integration package.

{% file src="/files/7HK86pxHdmGgbZGG2v0h" %}
\<Latest version>
{% endfile %}

{% file src="/files/0QMD9xmoBMALaI9oodrG" %}

{% file src="/files/2ghWvcRY7iHlkfn2oFql" %}

{% file src="/files/r0EILM7ZlqQzt8wSGmz9" %}

## Steps

1.- On your scene, make sure you are using Recast Graph, since it's the graph that has Offmeshlinks the Animal Controller can use to move off meshes.

![](/files/UpQqvm9WbNpdgzPCyOLG)

1.-    Select any of your animals and unpack the prefab. That way you can remove the **Animal AI Control**, and replace it with the **AIControl (A\*)** Component. Remove also the **Unity NavMeshAgent** component.

![](/files/w6BLERkIAQeMZ36OqNrq)

&#x20;This will add automatically the Seeker and the RichAI components from A\*Pathfinding.

2.- Add the A\*Modifiers you need to improve the Pathfinding on your AI

And that's it :)
