Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Additional offset to Follow behaviour
#4
Hi,

First, if not already done, please get an idea of the capabilities and usage of the Spline Controller by reading the documentation page, and watching the videos included in that page.

Then, write a script that does the following:

  1. get the tangent of the spline where your object at, and where it was the previous frame.
  2. Compute the angle between these two vectors.
  3. Compute the turn speed based on that angle.
  4. Add offset to your controller depending on how high is the turn speed.

This answers the complicated part, the drift implementation.
For the rest orientation, just setup your controller properly.
For the variable speed, use the API to change the value of Speed.

Here is the relevant api reference page:
https://api.curvyeditor.com/FluffyUnderw...oller.html

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: Additional offset to Follow behaviour - by _Aka_ - 04-30-2024, 01:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,360 04-12-2026, 03:18 PM
Last Post: _Aka_
  Play() does not cause SplineController to produce expected behaviour ConCat 8 1,358 02-08-2026, 11:54 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,462 07-29-2025, 09:15 PM
Last Post: _Aka_
  Absolute offset for shape extrudes rickgplus 1 1,446 03-21-2025, 12:37 PM
Last Post: _Aka_

Forum Jump: