Week 4 tutorial


Week 4 tutorial - 

This tutorial involved setting up ai navigation in a scene, of which I decided the sample scene was better to use than mine. I also downloaded the sample scene wrong and ended up without any objects besides the large terrain so I just made some myself. Most of the tutorial went swimmingly besides most of it. The player character can move around, could use the ai nav agent to pathfind to a location when the script made it do that. 

Here is a GIF of the scene, showing the newly made (via racasting) enemy chasing and redirecting itself to find the player. 

Here is the code for said instantiation, of which I needed to alter the newly created prefab to let it know what it should be chasing. 

I could not quite get the animations working in time, nor did I want to even bother to figure out how to make it predict where the player was going, as I have no idea how to mess with 3d positions (I could barely handle it in a 2d space). I will come back to this to get the animations working, but I have a tutorial now so I was unable to finish during the timeframe sorry.

-----UPDATE----

yeah got the animations working. Porting from one project to another seemed to unlink the animations from the little nodes in the animator window, just linking them back up got it all sorted. Looks a lot less ominous now

still not doing the predictive pathing, I have no idea how to.

Leave a comment

Log in with itch.io to leave a comment.