AI Movement - A Unity discussion
AI movement for our enemies may seem quite simple, but for a game as dynamic as Tenril it becomes greatly more complicated.
This is primarily due to the way built-in Unity features function versus the type of interaction we tried to achieve. Unity's built in Navigation Mesh is a very helpful and versatile feature which is capable of automatically detecting valid areas that an AI can move through, and capable of handling the movement of simple AI.
- Visualized Naviation Mesh for where AI can walk
Despite being a powerful tool that Unity provides, it is very limited when it comes to animation driven agents. What animation driven means is that when an enemy performs any animation, in this case movement like walking or running, the changes in its position and its collisions correctly reflect the animation.
- Animation controller for the animation driven movement
In order to make this function, we have two different systems work together. Unity's Navigation Mesh system is used purely for receiving information with all movement related features being disabled. This information is then used by a custom movement system that can correctly interpret it and play the correct combination of animations, achieving our desired interaction. This means the AI is able to intelligently navigate around a map, all while appearing to move more dynamically. It's versatile implementations like this which allowed for such advanced features such as our repositioning enemies mechanic.
Hope you learnt something new and maybe find inspiration for your own creations!
Get Tenril
Tenril
Put an end to the conflict of the two races of Tenril.
Status | On hold |
Publisher | |
Authors | HeavensGates, JacquesAV, LapizLazuli, Tessa |
Genre | Role Playing, Action, Adventure |
Tags | 3D, Atmospheric, Fantasy, Singleplayer, Story Rich, Third Person, Unity |
Languages | English |
More posts
- Xipilian Social CeremoniesMar 02, 2024
- Skill Tree: Swapping spells, Pyromancy tree path and much more!Feb 17, 2024
- Forging Your Destiny - Crafting System Part 3Feb 10, 2024
- Forging Your Destiny - Crafting System Part 2.5Feb 04, 2024
- Lunaegan Social CeremoniesJan 20, 2024
- Skill tree: Menu creation and Biomancy pathJan 06, 2024
- Forging Your Destiny - Crafting System Part 2Dec 23, 2023
- Social Structure; Xipilian CityDec 09, 2023
- Conclusion of the In-Game Menu Rework (Inventory, Stats and Settings)Nov 25, 2023
Leave a comment
Log in with itch.io to leave a comment.