Revert "Remove most usages of obsolete TransformComponent methods (#1… (#19714)

This commit is contained in:
metalgearsloth
2023-09-01 12:30:29 +10:00
committed by GitHub
parent 37222930d9
commit 4cfc578011
91 changed files with 227 additions and 315 deletions

View File

@@ -56,8 +56,7 @@ public sealed partial class ReplaySpectatorSystem
return data;
data.Local = (xform.Coordinates, xform.LocalRotation);
var (pos, rot) = _transform.GetWorldPositionRotation(xform);
data.World = (new(xform.MapUid.Value, pos), rot);
data.World = (new(xform.MapUid.Value, xform.WorldPosition), xform.WorldRotation);
if (TryComp(player, out InputMoverComponent? mover))
data.Eye = (mover.RelativeEntity, mover.TargetRelativeRotation);