Obstacle Avoidance steering behavior: how can an entity avoid an obstacle while other forces are acting on the entity?
- by Prog
I'm trying to implement the Obstacle Avoidance steering behavior in my 2D game.
Currently my approach is to apply a force on the entity, in the direction of the normal of the heading, scaled by a number that gets bigger the closer we are to the obstacle. This is supposed to push the entity to the side and avoid the obstacle that blocks it's way.
…