Hello everyone,
I want to spawn object on Curvy Spline at position that I click on it. For example, I click on the third Cache Point of Spline, it will spawn an Sphere at this point, then Sphere can Play on spline.
Thanks and Regards,
Create your controller and set its relative position to that TF
About step 2, right now there is no methods in Curvy Spline to get the nearest point from a spline. But you can find those methods in the link bellow. It is not yet part of the official Curvy Splines release: https://www.dropbox.com/sh/8k5uwhirs13qq...J0nja?dl=0
Please do not use the files from dropbox to replace your own Curvy Spline files (files of the same name in the Curvy folder), since the drop box files are based on an old Curvy Splines version. Just copy the GetNearestPointTF and GetNearestPointF methods that accepts a ray as a parameter, such as:
public float GetNearestPointTF(Ray ray)
public float GetNearestPointTF(Ray ray, out Vector3 nearest)
etc
Was my answer clear?
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.