From 16c31ade0f0dbd1c7991fbd2fef172e0d34e3bd5 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Tue, 2 Nov 2021 16:33:27 +1100 Subject: [PATCH] Fix pointer facing --- Content.Server/Pointing/EntitySystems/PointingSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Pointing/EntitySystems/PointingSystem.cs b/Content.Server/Pointing/EntitySystems/PointingSystem.cs index 2d8453020c..803eb90b67 100644 --- a/Content.Server/Pointing/EntitySystems/PointingSystem.cs +++ b/Content.Server/Pointing/EntitySystems/PointingSystem.cs @@ -119,7 +119,7 @@ namespace Content.Server.Pointing.EntitySystems var diff = mapCoords.Position - player.Transform.MapPosition.Position; if (diff.LengthSquared > 0.01f) { - player.Transform.LocalRotation = new Angle(diff); + player.Transform.WorldRotation = Angle.FromWorldVec(diff); } }