Ayyy my first ray cast. I’m working on the racetrack now. Checking if a point is inside a polygon by counting line intersections. Odd = inside and even = outside.


Thank you to this goldmine of an answer on stackoverflow about point vs polygon methods.