08-02-2018, 06:44 PM
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!
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!