Table of Contents

Interface IGridWorldPositionResolver2D

Namespace
MoonBark.GridPlacement.Core.Services.Targeting
Assembly
MoonBark.GridPlacement.Core.dll

Core-friendly abstraction for resolving a world-space coordinate from a grid coordinate. Implementations may be engine-backed (e.g. Godot sensors) or math-based.

public interface IGridWorldPositionResolver2D

Methods

TryGetWorldPosition(CoreVector2I, out CoreVector2)

Attempts to resolve the world-space position for the provided grid coordinate.

bool TryGetWorldPosition(CoreVector2I gridPosition, out CoreVector2 worldPosition)

Parameters

gridPosition CoreVector2I

Grid coordinate to resolve.

worldPosition CoreVector2

Resolved world-space position in Core coordinates.

Returns

bool

True if a world position could be resolved; otherwise false.