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. Removed too project specific stuff. Adjust everything to your needs.
Macro: AI Wandering System
Customer support service by UserEcho