Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move between control points
Are there shortcut methods that would help move a SplineController from ControlPoint A to ControlPoint B on a spline? In my scenario, I'm not using speed. I'm directly controlling the gameobjects movement along the spline with AbsolutePosition, and trying to control movement between different checkpoints along the spline. Imagine a bus route with stops for passengers where I instantiate a control point at each stop.

Or better yet, how do I find the closest ControlPoint to my gameobject's current position along the spline? If I could identify the current ControlPoint, then I could use functions like GetNextControlPoint, [b]GetPreviousControlPoint  [/b]and work with the ControlPointList.

You are looking for this method
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Ah, I saw that one but didn't think about scanning for out parameters. Out parameters are pretty hard to find with such a large API.

Thanks for pointing it out!

Possibly Related Threads...
Thread Author Replies Views Last Post
Question Control Point Metadata gets cleared. DavidH 2 37 12-09-2019, 03:04 PM
Last Post: DavidH
  Dummy spline points hnngaf 1 65 11-17-2019, 06:01 PM
Last Post: _Aka_
  Move CP00X position in hierarchy UsernameHed 1 74 11-12-2019, 02:01 PM
Last Post: _Aka_
  Invert the spline points ? UsernameHed 1 200 09-21-2019, 03:22 PM
Last Post: _Aka_

Forum Jump: