CatStation/Content.Client/Interactable/InteractionSystem.cs
metalgearsloth 55961aa603
Update for new render API (#45883)
* Update for new render API

- Fix mob movement incorrectly causing rotation lerps sometimes.
- Update API calls to use the new render-specific methods.

* Thanks rider

* augh wrong event

* Buckle, vehicle, and mover fixes

* Rename render poses to render transforms

* garbage
2026-10-05 17:31:10 +11:00

24 lines
677 B
C#

using System.Numerics;
using Content.Shared.Interaction;
using Content.Shared.Storage;
using Robust.Client.GameObjects;
using Robust.Shared.Containers;
namespace Content.Client.Interactable
{
// TODO Remove Shared prefix
public sealed partial class InteractionSystem : SharedInteractionSystem
{
[Dependency] private TransformSystem _clientTransform = default!;
protected override bool TryFaceInteraction(EntityUid user, Vector2 coordinates)
{
var faced = base.TryFaceInteraction(user, coordinates);
if (faced)
_clientTransform.SnapRenderRotation(user);
return faced;
}
}
}