Nez.Portable/ECS/Components/Physics/TiledMapMover.cs
/// <summary>
/// returns the tile position clamped to the tiled map
/// </summary>
/// <returns>The to tile position.</returns>
/// <param name="worldPosition">World position.</param>
/// <param name="axis">Axis.</param>
returns the tile position clamped to the tiled map
returns the tile position clamped to the tiled map
int worldToTilePosition(float worldPosition, Axis axis)
        {
            if (axis == Axis.Y)
                return tiledMap.worldToTilePositionY(worldPosition);
            return tiledMap.worldToTilePositionX(worldPosition);
        }
int worldToTilePosition ( float worldPosition , Axis axis ) { if ( axis == Axis . Y ) return tiledMap . worldToTilePositionY ( worldPosition ) ; return tiledMap . worldToTilePositionX ( worldPosition ) ; }
returns the tile position clamped to the tiled map
returns the tile position clamped to the tiled map
The to tile position.
The to tile position .
worldPosition
float
None
axis
Axis
None