Fix how movement sets an entities' rotation. (#6960)

This commit is contained in:
Leon Friedrich
2022-03-02 15:18:04 +13:00
committed by GitHub
parent aeaa7f65bc
commit 79b05c4e9b

View File

@@ -149,7 +149,7 @@ namespace Content.Shared.Movement
{
// This should have its event run during island solver soooo
xform.DeferUpdates = true;
xform.WorldRotation = worldTotal.GetDir().ToAngle();
xform.LocalRotation = total.GetDir().ToAngle();
xform.DeferUpdates = false;
HandleFootsteps(mover, mobMover);
}