So far, after consulting several other Lua scripters, I have been unable to resolve this problem.
The premise is I am attempting to create a vehicle that will travel along a straight path while floating parallel to the surface below it.
So, it works. Kind of. I can get the entity to float parallel to the surface below it, but I run into a problem in that the HitNormal function doesn’t seem to be consistent yaw-wise. For example, I can go from one section of track to the next and turn 90 or 180 degrees for no reason.
If I try to go in a loop, I’ll be moving sideways, backwards, and forwards before I can finish.
Has anyone else had this problem, or does anyone have a solution? (I’m just trying to find a way to make the angles consistent across multiple surfaces)