I have worked on trying to get the zombie flushed out and ready for the alpha build. I imported the model in and added colliders around specific bones to represent the model. Then customized the code further to where the zombie will face the player while moving around. I did this because when the zombie was charging sometimes it would go past the player which is something I did not want it to do. I also added a state machine so the zombie could do various things during different ranges and keep the code clean. During the various states, the zombie will play an animation; for example it will play an attack animation when close to the player. I further developed the state machine by adding an idle state where the zombie will moving around dynamically around the world space. Finally, I reworked on the death state for the AI to disable the colliders, disable the nav mesh, and remove the zombie after a certain time has passed.
navindervirdi
Navinder Virdi - 9/30/2022 - Journal - Zombie
Updated: Sep 30, 2022
Comments