Jump to content
  • Advertisement

Recommended Posts

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

 

Edited by thomedy

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!