Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best practice for controllers slowing down/speeding up along the spline
#2
Hi
I see few ways of doing it:
  1. The one you suggested, using custom events: These events are implemented using regular Unity. I can't try it for now yo be sure (I am on vacation), but try making a public method that takes an AnimationCurve, and see if the event can call it)
  2. Automatic speed variation based on the tangent variation: Change the speed of the controller based on the curvature of the track. You can compute it by computing the delta between the spline tangent at a specific point vs at a point slightly before.
  3. Using MetaData. Scene 01_MetaData shows how a controller has a height variation using meta data. You can do something similar to modify the speed.
    I hope this helped. Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Best practice for controllers slowing down/speeding up along the spline - by _Aka_ - 08-06-2023, 09:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,361 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 660 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,463 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,232 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: