Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do I position a splineController on a spline in runtime to an exact position?
#3
(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.
Reply


Messages In This Thread
RE: how do I position a splineController on a spline in runtime to an exact position? - by syscrusher - 01-17-2018, 10:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,301 04-12-2026, 03:18 PM
Last Post: _Aka_
  Play() does not cause SplineController to produce expected behaviour ConCat 8 1,313 02-08-2026, 11:54 AM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 647 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,435 07-29-2025, 09:15 PM
Last Post: _Aka_

Forum Jump: