Topic: Real distance conversion
Hi
I want to place Marker 3D at regular interval between two locations (those are defined with Vector2(longitude, latitude) )
Example:
nextLocation, currentLocation and direction are Vector2
Step is a float, representing the distance i want in meters
What i need to do is basically: Vector2 nextLocation = currentLocation + direction.normalized*step;
I know that this example ( http://infinity-code.com/atlas/online-m … ample.html ) could be a part of a solution to perform this.
But somehow when i add this script to my Map GameObject it fucked up my scene. (i can't control the map anymore and all i see is a blurry tile).
Aniway i'm pretty sure it would be better to just convert my 'Step' variable from meters to game unit ?
Or, since my location point are (latitude / longitude) should i multiply "Step" with some Lat/Long constant i ignore (so finally my problem is not Unity-unit-related ?)
As you can see i'm getting confused with the best approach to achieve this