b3dgs / lionengine

Java 2D Game Engine
http://lionengine.b3dgs.com
GNU General Public License v3.0
137 stars 23 forks source link

Pathfindable first move iteration can be invalid regarding orientation #785

Closed DjThunder closed 2 years ago

DjThunder commented 2 years ago

Expected Behavior

Immediate correct orientation on Pathfindable movement.

Actual Behavior

Orientation can be invalid because movement is not fast enough.

Steps to Reproduce the Problem

  1. Assign movement to a Pathfindable
  2. Check orientation on each loop
  3. First can be wrong or undefined