Topic: Smoothing GPS movement
[Reserved for video]
GPS values are jerky, that does not look smooth, and can create visual discomfort when driving.
In this example, I'll show you how to work around this problem.
GpsRouteEmulator simulates driving a car along a route at a specified speed to test location smoothing in the Unity Editor.
Uses Google Direction API and requires entering Google Maps key into Key Manager.
SmoothGPSMovement smooths location changes based on speed and compass value.
1. SmoothGPSMovement knows nothing about the route.
Using a route can improve the prediction of the expected point.
2. If GPS is lost (for example, entering a tunnel), the script will continue to move.
To fix this, you need to limit the simulated distance and / or time from the last update of GPS location.
Infinity Code Team.
uContext Basic is available for free. Download uContext Basic and improve your workflow.