scourge opened this issue on Mar 24, 2004 ยท 91 posts
scourge posted Tue, 30 March 2004 at 1:31 PM
Attached Link: Follow5.AVI (63 KB)
Here's a small update. Now the objects can avoid obstacles on their way. The object plans its route again every frame and takes the shortest possible route. As you can see from the video clip the object doesn't have to do any "sidesteps" nor does it move straight at any obstacle. To simplify the process I only did this with balls but walking figures should work well too. What I am going to do next: - edit the route finder function to support multiple obstacles on the way and find the best route out of all the possibilities (i.e. if there are 10 obstacles). - edit it some more so that the object detects where the obstacles are moving (if they are) and calculates the routes based on that data - heck a lot of other things I checked that "walk this way" script. It's pretty good and I could probably add something like that to this follow script. If only I could make it a little faster...