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
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
  Control points close together causing mesh overlap amccraw 5 71 05-23-2020, 06:08 PM
Last Post: _Aka_
  How to I get positions between control points dazz777 0 83 05-08-2020, 05:12 PM
Last Post: dazz777
  Control points / performance question dazz777 3 220 04-17-2020, 02:40 PM
Last Post: _Aka_
  Make connection between 2 control points dazz777 11 1,178 04-17-2020, 01:37 PM
Last Post: _Aka_

Forum Jump: