Flow field raycasting

This commit is contained in:
Anuken
2024-04-17 22:10:43 -04:00
parent d9f981cbde
commit 183c1a5763
4 changed files with 79 additions and 33 deletions

View File

@@ -341,7 +341,7 @@ public class AIController implements UnitController{
vec.setLength(speed * length);
}
//do not move when infinite vectors are used or if its zero.
//ignore invalid movement values
if(vec.isNaN() || vec.isInfinite() || vec.isZero()) return;
if(!unit.type.omniMovement && unit.type.rotateMoveFirst){