I'm attempting to basically create a road within a game, and am struggling with how I can detect if my existing geometry is in fact on this road.
Basically I have a list of x,y,z coordinates and if I draw a straight line between all of them that's the path I want to follow (assume an arbitrary width).
The problem is I have a list of normals/vertices/indices and don't know how to "detect" what is within the bounds of my road and what isn't.
Anyone have any ideas on how I can basically right a function that says:
IsPointOnRoad(float[3] point)
Anyone have any ideas on how to do this? I'm WAY rusty on my math, sadly, and have been trying to think this through.
Thanks in advance!