Random wandering toward goal destination
Posted 07 February 2011 - 04:23 AM
Where can I find resources that would help with implementing this type of behavior?
Posted 07 February 2011 - 04:37 AM
If you want things to wander randomly, you could try an approach like: pick a random point within a certain radius (excluding points in obstacles) and path to it. When you get there, pick another random point and repeat.
To make them gradually head toward a goal, every few iterations you could substitute the randomly chosen destination with the goal itself, but then only let them travel a short distance before re-randomizing the goal point. Depending on the obstacle geometry there's no guarantee they wouldn't get stuck in a steady state far from the goal, though.
Posted 07 February 2011 - 04:45 AM
I have tried using Google to find something that would be useful, and have not run across anything. That is why I'm now posting to this forum.
I don't think I need to resort to something as complicated as A* to solve this problem. I'm not interested in finding an optimal path from a source to destination.
I'm hoping to find something dealing with areas that can attract or repel as object move close to those areas.
Posted 07 February 2011 - 05:30 AM
if you still dont want it, why not just weight their random movements towards the goal, and theyll get there eventually? is that what you want?
Posted 07 February 2011 - 01:20 PM
Independent, directed human-like "wandering" (say, people in a city each with their own objective), crowded path (like filing into a stadium), or like a flock of birds (chaotic "follow the leader")?
This may help:
Posted 08 February 2011 - 03:50 AM
Posted 08 February 2011 - 05:18 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users