Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SplineController Reset to initial Position
#3
Thanks for the fast response 

mySplineController.Reset()   is protected.

Something to note is I am dynamically changing the location of the ControlPoints of the Spline used by the SplineController. So its possible that is part of the cause of the index out of bounds, I suspect the spline is getting shorter and that isnt handled by that code.

Is there something that should be called when the spline is changed?



(06-14-2016, 02:13 PM)Jake Wrote: Either use 

mySplineController.Reset()  

or 

mySplineController.Position=mySplineController.InitialPosition

Both should work. I'm looking into the exception, that shouldn't happen. Anyways, ResetOnStop only has an effect if you use the Animate feature.
Reply


Messages In This Thread
RE: SplineController Reset to initial Position - by aspartamed - 06-14-2016, 02:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  How could I get position in spline from "From" value in BuildRasterizedPath? Chanon 1 8 02-12-2024, 09:54 PM
Last Post: _Aka_
  Finding relative position across connected splines DekoGames 1 8 02-05-2024, 10:11 PM
Last Post: _Aka_

Forum Jump: