Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bugs & updates needed: Curvy Move Along Spline Distance (Playmaker) not working
#7
(01-20-2014, 09:26 AM)'FritsLyn' Wrote: Then, just so you are aware: Move by world units is not allways 100% steady, specially closer to spline segments very far apart.
That's by design. CurvySpline.MoveBy (or setting "Use World Units" in custom actions) works by moving a small step, comparing distances and extrapolating that to move the desired length. It's fast and works without the need to actually precalculate length values, but the downside is that it can get inaccurate.

To overcome this, MoveByLengthFast() can be used, which actually works with cached length values (of course you'll need to set granularity to 20 or even higher, depending on your curve). There's not an option for this yet in the custom actions, but you can just change the custom action and replace MoveBy() with MoveByLengthFast().
Reply


Messages In This Thread

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 221 06-07-2025, 09:44 AM
Last Post: _Aka_
  Filling a closed spline dynamically rickgplus 1 450 04-16-2025, 08:56 AM
Last Post: _Aka_
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 411 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 1,590 01-20-2025, 12:25 PM
Last Post: _Aka_

Forum Jump: