Topic: Player Marker - update by Location

Hello,
I use the direction API to search between 2 areas In a small walking radius (usually the first input is my current location).
I use the Input.Compass API to rotate the icon according to my direction.


My issue is with GPS location (Input.Location.lastData).
I have tried updating OnlineMapsLocationService.cs parameters to the following:

public float desiredAccuracy = 0.01f;
public float updateDistance = 0.01f;

No matter how much I change it, the icon feels like it teleports from 1 area to another instead of having a smooth walking pace.

Does anyone know a method to read the location regularly and properly update the marker accordingly to give the feel of a smooth walking pace.

thanks,
Appearia.

Re: Player Marker - update by Location

Hello.

Serialization works in such a way that it doesn't matter what value you specify in the script. Only the values you specify in the inspector matter.
In addition, civilian devices do not have such accuracy. The average accuracy of civilian sensors is 3-5 meters in the open sky, which can decrease dramatically if satellite visibility is limited.
Also, such small values are less than the precision a float can achieve, and in some cases you may end up with constant map updates.

How to smooth update GPS values:
https://forum.infinity-code.com/viewtopic.php?id=1640

Kind Regards,
Infinity Code Team.

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