I Did some GeoGebra magic today and found some usefull information, tho I'm not entirely sure on how to get the same information in Coding wise. ?As I thought I have to make use of DotProduct and CrossProduct. With DotProduct I can easly create scalar projections of Perpendicular points Using this formula:
ap = p - a
?ab = b - a
sp = dot(ap,ab.normalized)
- ap is the vector from a to p
- ab is the vector from a to b
- sp is the scalar projection of p on ab (float)
normalPoint = a + (ab.normalized * sp)
?On the chart, my simple questions are, how to find A1, B1 and T. (Basically they would be mapped on the waypoint node as "RacingLinePoint" but first the magic...
?Edit:
The radius of the racing line comes from this formula:
ArcR_radius =? (C1T / 2) + ((A1B1 * A1B1) / 8 * C1T)
The variables are on the graph..