Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
splinecontroller initial position only applied after clamp.
#1
Im spawning and reusing dummy prefabs to move stuff along a spline. But their starting point should vary. When setting the initial position nothing happens when I run, the value isn't applied until the clamp happens ( which is set to loop ).

Code:
SplineController sc = a.GetComponent<SplineController>();

 sc.Position =  sc.InitialPosition = sc.Spline.GetNearestPointTF(StartPoint.position) * sc.Spline.Length;

Any idea what im doing wrong?
Reply


Messages In This Thread
splinecontroller initial position only applied after clamp. - by Sidar - 07-13-2016, 01:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Play() does not cause SplineController to produce expected behaviour ConCat 8 2,025 02-08-2026, 11:54 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,898 07-29-2025, 09:15 PM
Last Post: _Aka_
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 2,309 06-07-2025, 09:44 AM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 1,965 03-28-2024, 10:08 PM
Last Post: _Aka_

Forum Jump: