> 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.

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2F8PXKcuDdBsM8cMrOTpAM%2Fimage.png?alt=media\&token=837f51d1-7741-4c41-add7-1ae406914c59)

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.

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2F5sq8biX6jStRm3Qm9GOO%2FkIBMXFzXyT.gif?alt=media\&token=145605e8-c96f-4dd4-9886-8eb891e44914)

&#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 :)
