Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a Control point Not working as espected
#2
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.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
RE: Adding a Control point Not working as espected - by _Aka_ - 05-19-2019, 01:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Issues when working with in-place prefabs Sacryn 4 6 02-27-2024, 04:08 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_

Forum Jump: