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?
#1
Code:
mySplineController.Position = 0.5f;
or
Code:
mySplineController.Position = myPath.Length*0.5f
doesn't really seem to do anything, the spline controller just starts at the start of the spline.

What's the best way to tell a spline controller to explicitly go to a position along a spline?

I tried turning Play Automatically on and off but that stop speed from moving the spline controller.
Reply


Messages In This Thread
how do I position a splineController on a spline in runtime to an exact position? - by hawken - 01-16-2018, 03:29 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: