From 2e2513d5c6934861fc75ed11b4c223d2c258d9da Mon Sep 17 00:00:00 2001 From: Sveske Juice Date: Sun, 21 Apr 2024 13:55:46 +0200 Subject: [PATCH] facing dir --- Assets/Scripts/Manager/WaypointPath.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Scripts/Manager/WaypointPath.cs b/Assets/Scripts/Manager/WaypointPath.cs index 7a1e51c..3ad27fc 100644 --- a/Assets/Scripts/Manager/WaypointPath.cs +++ b/Assets/Scripts/Manager/WaypointPath.cs @@ -53,6 +53,7 @@ public class WaypointPath : MonoBehaviour float minDist = Math.Min(dist, data.MoveSpeed * Time.deltaTime); data.Entity.position += normTargetDir * minDist; + data.Entity.right = -normTargetDir; } }