🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

npc ai

Started by
1 comment, last by logicandchaos 4 years, 7 months ago

Okay i am building a super market game...

 

and im developing the ai for my npc...

 

i am thinking about the way that customers walk around a super market and it kinda has a fluid motion feel to it.... like they way they way in between aisles..

im very seriously considering writing a vector field for my  my path where the customer (npc) can  sense pivot points (end of aisle) and transition

 

 

another thought i had was just an intuitive.. if you went right last time... go left this time walking the entirety of the supermarket and starting over

 

i amg oing back and forth on this idea... what is the most realistic path and most efficient use of my memory

 

Thom

Advertisement
  1. You could use a flow field for the movement which could provide smooth movement, I created a unity asset that directs unity movement with flow fields, however that might be a bit overkill, might be good if the goal keeps changing or you want to move a lot of shoppers to the same goal. I think that waypoints might be a better fit solution, but really depends on what you are trying to achieve.

This topic is closed to new replies.

Advertisement