Random Moving of characters within an area??

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Haze
Posts: 4
Joined: Mon Oct 10, 2005 8:34 am
Location: Singapore

Random Moving of characters within an area??

Post by Haze »

Anyone knows how I should go about to make the character move randomly within an area?

Thanks.
Haze Poh
pfo
Posts: 370
Joined: Mon Aug 29, 2005 10:54 pm
Location: http://web.utk.edu/~pfox1

Post by pfo »

What you're looking for is pathfinding. One way to do this is to have each character select a random position, then have that character move itself towards that position each frame. A better way is to create a set of points that characters can select to move towards.
puh
Posts: 356
Joined: Tue Aug 26, 2003 3:53 pm

Post by puh »

http://www.daveandrews.org/dustyengine/downloads.php
Dusty Demo 3:
This is the third demo of the engine which shows the time-based interpolation of Dusty Engine. In this demo, a bunch of models are created and they run around to random places at random times.
Image

Don't reinvent the wheel!
Post Reply