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
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: