little AI improvements

Поділитися
Вставка
  • Опубліковано 31 січ 2025
  • little summary of what i've done.
    I've made a FOV for the AI using a dot product because those are pretty neat, and now there's a POV game object that the code uses for the dot product and i've made it so that if the AI is chasing you then the POV game object will always look at you even if you're behind a wall, and stop looking at you once it stops chasing, pretty neat stuff that can easily allow for some stealth :D
    Oh! and finally the ray being shot out doesn't require the POV game object, now instead just having the direction of the player in the code instead of requiring that junk.
    TLDR; i've made it ever so slightly smarter and nerfed it a little by making it be able to look in your direction through walls and have a limited FOV instead of the usual 360 view it once had

КОМЕНТАРІ •