class Utils (Niantic.ARDK.Extensions.Gameboard.Utils)

Overview

class Utils {
public:
    // methods

    static Vector2Int PositionToTile(Vector3 position, float tileSize);
};

Detailed Documentation

Methods

static Vector2Int PositionToTile(Vector3 position, float tileSize)

Converts a world position to grid coordinates.

Parameters:

position

Position to convert.

tileSize

Metric size of each tile in the grid.