Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move CP00X position in hierarchy
Hello ! I have a little issue.

I am manually adding point on a spline, using spline.Add(Vector3 position).

After the creation, I would like to manually order myself the position of the point in the spline
[Image: IKmkDDvZ4OZ_spline.png]

How, From script, can i change the order of a CurvySplineSegment ? (and update the spline to do the calculation)

Thanks !
Unity's API has this method to define the rank of an game object in its hierarchy:
Then after you are done changing the order of CPs, call CurvySpline.SyncSplineFromHierarchy(), and if needed CurvySpline.Refresh() after that.
That should be it. Please let me know if this didn't solve your issue.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
  get world vector3 from absolute position on spline hawken 2 250 06-08-2021, 12:28 PM
Last Post: hawken
  Create a path with Curvy from a "position" animation with several keyframes mc_deimon 1 301 05-20-2021, 10:04 AM
Last Post: _Aka_
  Get position on spline relative to world position Mos Def 9 1,347 05-20-2021, 08:32 AM
Last Post: _Aka_
  Finding a position on a spline lee9084 3 862 03-04-2021, 12:36 PM
Last Post: _Aka_

Forum Jump: