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.

Possible improvements:
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.

Post's attachments

Attachment icon GpsRouteEmulator.cs 4.43 kb, 930 downloads since 2020-11-19 

Attachment icon SmoothGPSMovement.cs 6.49 kb, 262 downloads since 2020-11-19 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Smoothing GPS movement

Wow Thats Great!!