Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move between control points
#1
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.

Thanks!
Reply
#2
You are looking for this method
https://api.curvyeditor.com/230/class_fluffy_underware_1_1_curvy_1_1_curvy_spline.html#aad246b80a09ace695ca02fc5367a27f4
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems compiling after pulling down project from source control obscurelyme 2 12 02-13-2022, 03:47 PM
Last Post: Marco Schultz
  Feature Request-move UI elements in SceneView spawnstorm 3 9 12-27-2021, 12:25 PM
Last Post: _Aka_
  Allow to control Global Illumination settings in CreateMesh node of PathGenerator RobinB 2 233 11-02-2021, 08:50 AM
Last Post: RobinB
  GameObjects that move along the path of Curvy Splines will protrude. yanke 5 409 10-26-2021, 09:59 AM
Last Post: _Aka_

Forum Jump: