AI wandering system

Crystalius 12 months ago updated 11 months ago 2


Thought someone might find it useful.

Demon wandering system. Vid sped up.

Every randomized seconds, an invisible empty object orbits around another one (center, here white lines begins) for randomized time and stings red line into the ground, making a new destination for demon. 

Range (distance from center) is also randomized for better simulation of natural wandering.

This system works well when confinement in a small space is needed. AI won't wander further than maximum range of orbit that is set.

Cannot embed video so check it either on Facebook: https://www.facebook.com/CrystalGames1111/videos/2177147375835121/  or Twitter: https://twitter.com/CrystalGames333/status/1056998250446761985

I've just cut out the code from my project. Adjust everything to your needs.

Macro: AI Wandering System

Best wishes! :)

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Thank you for sharing! This reminds me to the wandering of some NPCs of Baldur's Gate.

Happy it's useful for someone!

I remember I loved Baldur's Gate very long time ago 😊