Yeah, the point would have to be at least welded to the curve.dkwroot wrote:That's what I initially thought, but the IsPointOnSegment function works for checking if a point is on a segment, not a vector location. GetPercentLocation only returns a vector location. I thought about using the vector location to add a lone point and then do the IsPointOnSegment function in a loop, but I've never used the IsPointOnSegment function and assumed that it was for checking if a point that was already a part of a curve was part of a given segment on that curve. In other words, it wouldn't identify lone points in a vector location on the curve since the lone point isn't part of that curve.synthsin75 wrote:We do have the IsPointOnSegment function. Just have to loop through the segments.
I'll give this a whirl and see what happens though.
Looking at the scripting docs again, it looks like you need to use: GetSegmentRange(int32 segID, real *startPercent, real *endPercent)
GetPercentLocation to, I assume, find the location on the curve of a vector location, then loop through the segments until you find the one with a range that includes that percent. Just a guess.