Skip to main content
GameDev.net gamedev.net
🔒 Locked

Pathfinding animation question

Started by EdwardVella Apr 9, 2011 at 2:18 PM 1 replies 2.7k views
Original Post
EdwardVella
EdwardVella
i have implemented my path finding algorithm and now it works using without collision detection without multiple agents. I am going to implement the steering behaviours for the agents so that they can steer away from other agents, but during the planning stages i have run into the problem to see how i can make my agents "stick" to my navigation mesh.

Does anyone have any suggestions or know about some papers which can help me solve this problem?

Thanks
Emergent
Emergent
A nice unified way to do swarming is with interagent potentials. I.e. have them exert repulsive/attractive forces on one another, with minima at the interagent distances you want to maintain.

You can also incorporate, in such a framework, global potentials in the environment -- and these are what will prevent the agents from leaving the navmesh. In other words, the boundaries of your environment would radiate a repulsive force.

Some papers include Rimon & Koditschek (for the single-agent case) and Tanner & Jadbabaie Part I and Part II for the multiagent case, though, honestly, I don't really recommend building navigation functions the way Rimon & Koditschek do; instead, there are some natural ways to build potentials that are defined piecewise over your triangles. I don't have a source off the top of my head for this, but it's pretty straightforward; it's the kind of thing you'd just make up yourself if you paused to think about it for a little bit. Maybe I can track down some sources later though.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.