Reagent grinder jittering (#24190)

* Reagent grinder jittering

* Fix jittering for offset sprites
This commit is contained in:
Kara
2024-01-17 06:14:32 -07:00
committed by GitHub
parent cfc64fa8ca
commit 1f92376579
3 changed files with 25 additions and 2 deletions

View File

@@ -17,4 +17,11 @@ public sealed partial class JitteringComponent : Component
[ViewVariables(VVAccess.ReadWrite)]
public Vector2 LastJitter { get; set; }
/// <summary>
/// The offset that an entity had before jittering started,
/// so that we can reset it properly.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public Vector2 StartOffset = Vector2.Zero;
}