Step Avoiding

This is a very powerful motion action. It should be placed in the step event. Like the previous action it lets the instance take a step towards a particular position. But in this case it tries to avoid obstacles. When the instance would run into a solid instance (or any instance) it will change the direction of motion to try to avoid the instance and move around it. The approach is not guaranteed to work but in most easy cases it will effectively move the instance towards the goal. For more complicated cases, there are motion planning functions. You specify the position to move to, the speed with which to move, that is, the size of the step, and whether the motion should avoid solid instances or any instance.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License