Files
wwdpublic/Content.Client/Movement/Components/EyeCursorOffsetComponent.cs
SlamBamActionman bd28f7f0dd Add conditional camera offset based on cursor - Hristov Rework, Part 1 (#31626)
(cherry picked from commit 5c782d30283d5e3661e1ce6ebc6d972f12671c41)
2025-09-20 18:51:05 +03:00

20 lines
635 B
C#

using System.Numerics;
using Content.Client.Movement.Systems;
using Content.Shared.Movement.Components;
namespace Content.Client.Movement.Components;
[RegisterComponent]
public sealed partial class EyeCursorOffsetComponent : SharedEyeCursorOffsetComponent
{
/// <summary>
/// The location the offset will attempt to pan towards; based on the cursor's position in the game window.
/// </summary>
public Vector2 TargetPosition = Vector2.Zero;
/// <summary>
/// The current positional offset being applied. Used to enable gradual panning.
/// </summary>
public Vector2 CurrentPosition = Vector2.Zero;
}