facing dir

This commit is contained in:
Sveske Juice 2024-04-21 13:55:46 +02:00
parent bb69b3b52e
commit 2e2513d5c6
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public class WaypointPath : MonoBehaviour
float minDist = Math.Min(dist, data.MoveSpeed * Time.deltaTime); float minDist = Math.Min(dist, data.MoveSpeed * Time.deltaTime);
data.Entity.position += normTargetDir * minDist; data.Entity.position += normTargetDir * minDist;
data.Entity.right = -normTargetDir;
} }
} }