Steer Behaviors

Steer behaviors allows you to control the locomotion of “characters”, this can reduce drastically the time needed to develop a game since for almost every game we need to set how these “characters” will be moving around the scene.

Prioritizing behaviors

You can assign priority layers: The steering controller first checks the higher layer to see if all the behaviors returns a value higher than minLengthToInvalidSteer, if so it uses that layer. Otherwise, it moves on to the second layer, and so on.

Strict arguments

To ensure that the behavior will work as you had planned it to work It’s recommended to create your own IllegalArgumentException class. To do this, create your own container class extending from com.jme3.ai.agents.behaviors.npc.steering.SteeringExceptions; Each exception inside the container class extends from SteeringBehaviorException. Furthermore, It will help users to recognize better which is the origin of any problem.