Type Alias WorldBounds

WorldBounds: {
    maxX: number;
    maxY: number;
    minX: number;
    minY: number;
}

Axis-aligned rectangle in world coordinates (grid units). Used by the server to clamp paths and by the watch UI to clamp joystick-driven movement.

Type declaration

  • maxX: number

    Inclusive maximum X.

  • maxY: number

    Inclusive maximum Y.

  • minX: number

    Inclusive minimum X.

  • minY: number

    Inclusive minimum Y.

Consumers: clampWorldPosition, boundsContain; server PlayWorld and play-ui canvas both import these helpers from @agent-play/sdk.