MoveToPerfectComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct MoveToPerfectComponent : IComponent

This is a move to component that is not tied to any agent and that matches perfectly the target.

Implements: IComponent

⭐ Constructors

public MoveToPerfectComponent(Vector2& target, float duration, EaseKind ease)

Parameters
target Vector2&
duration float
ease EaseKind

⭐ Properties

Duration

public readonly float Duration;

Returns
float

EaseKind

public readonly EaseKind EaseKind;

Returns
EaseKind

StartPosition

public readonly T? StartPosition;

Returns
T?

StartTime

public readonly float StartTime;

Returns
float

Target

public readonly Vector2 Target;

Returns
Vector2

⭐ Methods

WithStartPosition(Vector2&)

public MoveToPerfectComponent WithStartPosition(Vector2& startPosition)

Parameters
startPosition Vector2&

Returns
MoveToPerfectComponent