1 (edited by thepostfuturist 2017-05-14 21:56:13)

Topic: Marker jitter with MoveMarkerOnRouteExample

Hello,

I'm using the MoveMarkerOnRouteExample script, and noticing jitter in the marker position when it's traversing. Is there a way to smooth the Lerp?

Notably, if I check 'LookAtMarker', the map shakes, if not, the marker does.

Re: Marker jitter with MoveMarkerOnRouteExample

Hello.

Please, tell us more about this problem.
Which control do you use?
A small video showing the problem, will help quickly understand what is happening, and how to fix it.

Kind Regards,
Infinity Code Team.

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

Re: Marker jitter with MoveMarkerOnRouteExample

Nothing fancy, and please let me know if the video doesn't describe it. I just made a sandbox script to play around with the MoveMarkerOnRouteExample script, but nothing that changes functionality.

https://youtu.be/1B6CSGDjoFE

Re: Marker jitter with MoveMarkerOnRouteExample

Thank you for the video.
The problem is that Vector2 contains coordinates with a single precision (float).
We will try to improve this using double precision.

Kind Regards,
Infinity Code Team.

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

Re: Marker jitter with MoveMarkerOnRouteExample

thanks again!

Re: Marker jitter with MoveMarkerOnRouteExample

Hello.

Updated example for Online Maps v2.5.10.1+ is attached.

Post's attachments

Attachment icon MoveMarkerOnRouteExample.cs 4.39 kb, 269 downloads since 2017-05-18 

Kind Regards,
Infinity Code Team.

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