05-19-2019, 01:43 PM
Hi,
When adding control points through the Add method, you will need to give as a parameter the CP's position in the spline's local space, not the global space. My bad the documentation does not state this clearly, I will fix it in an upcoming release.
To get the local position of a point in a spline based on its TF or its distance, use the methods Interpolate or InterpolateByDistance
The Add method inserts the CP at the end of the spline. You have other methods called InsertBefore and InsertAfter that you can use to insert the CP elsewhere.
When adding control points through the Add method, you will need to give as a parameter the CP's position in the spline's local space, not the global space. My bad the documentation does not state this clearly, I will fix it in an upcoming release.
To get the local position of a point in a spline based on its TF or its distance, use the methods Interpolate or InterpolateByDistance
The Add method inserts the CP at the end of the spline. You have other methods called InsertBefore and InsertAfter that you can use to insert the CP elsewhere.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.