Remove most usages of obsolete TransformComponent methods (#19571)
This commit is contained in:
@@ -56,7 +56,8 @@ public sealed partial class ReplaySpectatorSystem
|
||||
return data;
|
||||
|
||||
data.Local = (xform.Coordinates, xform.LocalRotation);
|
||||
data.World = (new(xform.MapUid.Value, xform.WorldPosition), xform.WorldRotation);
|
||||
var (pos, rot) = _transform.GetWorldPositionRotation(xform);
|
||||
data.World = (new(xform.MapUid.Value, pos), rot);
|
||||
|
||||
if (TryComp(player, out InputMoverComponent? mover))
|
||||
data.Eye = (mover.RelativeEntity, mover.TargetRelativeRotation);
|
||||
|
||||
Reference in New Issue
Block a user