05-19-2021, 05:06 AM
(05-19-2021, 01:18 AM)smackledorf Wrote:(05-10-2021, 07:07 AM)_Aka_ Wrote: Hi
I believe you need to use the CurvySpline.GetNearestPointTF()
Have a nice day
Hello, is there a function for the opposite effect? Ability to plug in a TF and get the world position of that point at the the spline? I want to get the world position on the spline that is closest to my player as a Vector
Since posting this I figured out the solution, nevermind! For those who stumble here in the future:
Code:
Vector3 P;
float pTf = currentSpline.GetNearestPointTF(transform.position, out P);
Where P is the world position of that TF!