01-17-2018, 10:45 PM
(01-16-2018, 09:07 PM)_Aka_ Wrote: My guess is that you are giving a relative distance while your controller expects an absolute one.
Position sets/gets either the absolute or relative position (TF) depending on your controller's MoveMode.
So either set that mode to Relative, or use mySplineController.RelativePosition, which always takes a relative position, regardless of the controller's MoveMode.
Hello, Aka
I actually came here with the same question. I have my spline in relative mode, and I am setting Position based on that expectation (values ranging from 0.0f to 1.0f inclusive). The SplineController doesn't move for me. Is there another method I need to call? Special values needed in the other Inspector settings for this SplineController? I suspect my script-driven setting is fighting with the SplineController's own built-in calculation, although I have turned off the option to automatically play the motion.