Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About feorang

  • Rank

Personal Information

  • Interests
  1. feorang

    Grouping NPCs

    I struggled with a same problem recently. I decided to create initial groups at spawn since that was when NPCs are guaranteed to be clustered. Specifically I make a group controller who then spawns the NPCs. If these controllers periodically update their location to the center of mass of their respective NPCs. If these controllers get too close, they merge. If after some merging, the group is too large for calculations (I set an arbitrary limit of 10 simply because of how I'm handling the more complex AI), it gets split evenly and the groups try to split apart physically. It keeps my calculations low, but as I said, the primary driver was so I could better coordinate small group tactics.
  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!