A
A
Alexander Vasilenko2016-01-15 21:46:41
Android
Alexander Vasilenko, 2016-01-15 21:46:41

How to emulate object movement by google maps coordinates?

Help! I'm burning! There is a list of coordinates. It is necessary that the typewriter move along them (well, I made it a marker). This is a simulation of movement, no real location tracking is needed, you can get by with a handler. It is also necessary that the machine is always turned towards the next coordinate. How to implement this can be a schematic explanation. You just need to add up in your head how to make the movement smooth.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
z0rgoyok, 2016-01-15
@z0rgoyok

https://gist.github.com/broady/6314689
rotation - read angle between current and future coordinate vectors

A
Alexey S., 2016-01-15
@Winsik

regular linear function: (x-x0)/(x1-x0)=(y-y0)/(y1-y0)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question