Just a quick question:
I've implemented a boids algorithm for simulating the motion of schools of fish. Rather than the fish dumbly smacking into the walls of the map, I'd rather they begin turning before hitting the wall.
I was thinking maybe having a sensor (a non-solid wall) "zone" near the walls that the fish class could use as a hint to "turn around", maybe include a meta-data vector that "pushes" them away from the wall?
Would this be the "right way" to do this or am I doing it the hard way?