Skip to content

How to translate positions in movement group to Riot API map coordinates? #12

@giratikanon

Description

@giratikanon

When I run bin/libOL_test on sample chunks, I see MovementGroups, but the X and Y values go from roughly -3500 to 3500. Example:

MovementGroup: {
    "timestamp": 1342,
    "updates": [{
        "entityId": 1073741854,
        "position": {
            "x": 3541,
            "y": 3524
        },
        "waypoints": [{
            "x": 3460,
            "y": 3275
        }]
    }]
}

This is a range of 7000 in each direction, or half of the X/Y range of about 15000 as defined in the Riot Games API game constants.

I understand that the chunk positions have a 0,0 in the map center, but I don't understand how to translate them to match the Riot Games API positions. Should I basically just multiply by 2 and add 7,000 (or so)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions