Missed mob rotation

This commit is contained in:
dingo
2025-12-27 21:30:39 -05:00
parent b05d565643
commit a891540dcf
+3
View File
@@ -655,6 +655,9 @@ public static class MobAI
if (dist < 1f) return;
// Update rotation to face movement direction
mob.Rotation = MathF.Atan2(dy, dx);
float moveX = (dx / dist) * speed;
float moveY = (dy / dist) * speed;