After alot of trying to have realistic movement in my simulator I finally figured out how to make a good random walk path generation, the speed and direction is generated on the fly as the program runs.
Basically it pics a random targetspeed between 0 -3 m/s to achieve at a random intervall between 1-4 seconds. For the direction it increments at a random target angle at random interwall between 1-5 seconds
This is the result after 10 minutes of walking, each grid is 10meter.
Programmed in the super awesome open sourced Irrlicht 3d engine.
Ingen kommentarer:
Legg inn en kommentar