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_fl...c5367a27f4
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
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
  OnAfterControlPointAdded - Control Point is null jh092 5 2,342 02-04-2025, 09:31 PM
Last Post: _Aka_
  How to generate gameobject on the control point Yang Yi 1 1,221 12-10-2024, 10:14 PM
Last Post: _Aka_
  Scene 51: Dynamic track between two points wallflower6 3 1,818 08-19-2024, 08:18 AM
Last Post: _Aka_
  Player move with object mcarman 4 2,109 07-29-2024, 06:49 PM
Last Post: mcarman

Forum Jump: