troy: five's alive

So we have a world and some gubbins that need to move around it. For this we need to do coding and AI stuff, but this will easy as anything since I used the path finding AI in a previous project so already have the line of [remarkably simple] code and an understanding of how to use it. 

firstly, we need to set our charriots up with a nav-mesh agent, so the charriots know how wide they are, how steep a hill they can go up, how fast they are,
how mad they can go round corners etc.



       






Now on the coding, it's literally one line that sets the navigation agents target to any item that's tagged as 'arch',  which is easily done by setting up the archer as a prefab and creating a the tag arch.












And boom, that's about it, we have a dude who will run around after an object. 

Comments

Popular posts from this blog

portfolio work: 1 - getting started

Car stuff

portfolio 9: sounds alright