OffsetAttribute
namespace Griff.Scenes;
public sealed class OffsetAttribute : AttributeMarks a Vector2 as a point offset from the entity, e.g. where a light shines from or where a shooter’s shots appear: with Distance Handles (D) the Scene view puts a knob there to drag.
Properties
Section titled “Properties”Center
Section titled “Center”public string? Center { get; init; }Another offset of the component it’s from, rather than the entity (a slingshot’s pull, from its pouch): its knob is drawn and dragged from there.
public bool World { get; init; }It’s in world units, added to where the entity is (a shooter’s), rather than in the entity’s own units, before its scale and turned with it (a light’s).