Adding GPS brought real-world math challenges

November 28, 2025

Later, we integrated a geolocation library so we could place game objects on real-world map points.

That’s when the fun (and math) really started.

When the AR scene launches, Unity creates a local coordinate system – and it’s not aligned with the real world. For example, the in-game X-axis might point south or northeast, depending on how you hold your phone.

    To place objects correctly, we had to sync:

    • Unity’s local coordinate system
    • Real-world GPS (latitude/longitude)
    • Compass heading
    • And align it all so X points to true north

    Tough? Yes. But we cracked it.