The online racing simulator
LFS GPS system (html + js)
k = (B.y - A.y)/(B.x - A.x);


k = 0 when A.y == B.y
if (A.y == B.y) then x = C.x; y = A.y; break; end

k = inf when A.x == B.x
if (A.x == B.x) then x = A.x; y = C.y; break; end
Quote from repeat83 :k = (B.y - A.y)/(B.x - A.x);


k = 0 when A.y == B.y
if (A.y == B.y) then x = C.x; y = A.y; break; end

k = inf when A.x == B.x
if (A.x == B.x) then x = A.x; y = C.y; break; end

thanks
Well, I'm officially impressed and jealous that you figured that out.
Well.. It's also quite some work to create that json with road coordinates?
if i understand it right:
about 10 hours to write system and 2 hours for content
Interessting. The road coordinates are done by hand or generated somehow from pathfiles or smx meshes?
Sometimes there was some bugs, see attached picture. (maybe you already know)
Attached images
bla.png
done by hand.
about bugs i know =)

FGED GREDG RDFGDR GSFDG