FacingComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct FacingComponent : IComponent

Implements: IComponent

⭐ Constructors

public FacingComponent(Direction direction)

Creates a FacingComponent using a Direction as a base.

Parameters
direction Direction

public FacingComponent(float angle)

Parameters
angle float

⭐ Properties

Angle

public readonly float Angle;

The angle the agent is facing, in radians

Returns
float

Direction

public Direction Direction { get; }

The FacingComponent.Direction that this entity is facing

Returns
Direction