Files
wwdpublic/Content.Shared/Follower/Components/OrbitVisualsComponent.cs
Tayrtahn b2876c8ee7 Ghost orbit jitter fix (#34797)
* Only randomize orbit parameters once

* Revert "Only randomize orbit parameters once"

This reverts commit e828c51e66600bf11b66308169da1d1daf7501e3.

* Derive orbit properties from current time

* Derive orbit progress from current time

* Remove now-unused orbit animation

* Remove OrbitVisualsComponent.Orbit as it is no longer used

* Update AnimationPlayerSystem method calls to Entity<T> versions

(cherry picked from commit a238f71540c0a509cd26b6bdb76857fd846317e7)
2026-02-10 19:50:58 +03:00

32 lines
907 B
C#

using Robust.Shared.Animations;
using Robust.Shared.GameStates;
namespace Content.Shared.Follower.Components;
[RegisterComponent]
[NetworkedComponent]
public sealed partial class OrbitVisualsComponent : Component
{
/// <summary>
/// How long should the orbit animation last in seconds, before being randomized?
/// </summary>
public float OrbitLength = 2.0f;
/// <summary>
/// How far away from the entity should the orbit be, before being randomized?
/// </summary>
public float OrbitDistance = 1.0f;
/// <summary>
/// How long should the orbit stop animation last in seconds?
/// </summary>
public float OrbitStopLength = 1.0f;
// WWDP EDIT START
/// <summary>
/// Whether the orbiting entity's sprite will rotate along the orbit, or stay vertical.
/// </summary>
public bool KeepUpright = false;
// WWDP EDIT END
}