June 22, 2002
Steering Behaviors - Step 2
Here is part 2 of my current exploration into the world of flocking, evading and colliding. After getting rid of all the "getters" and "setters" I already felt a little improvement in speed. But rewriting the whole render engine and improving the polygon intersection methods brought it really one step forward.
I added a framecounter which makes it obvious that the "Obstacle Avoiding" behavior is the evil guy here. The problem is that each time an obstacle is detected the algorithm checks all its polygons for the closest one to calculate the direction of the drive-away-force. It looks like I have to integrate a detection matrix-scheme which should reduce the number of checks necessary.
Posted at June 22, 2002 08:53 PM | Further reading
