Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with, around, or against SplineController
Are there guidelines anywhere on how to work with the SplineController? Besides being consistent with the relative/absolute mode, it seems like there are other steps (i.e., update timing) about how to write code that doesn't fight with whatever the SplineController is doing behind the scenes.

For example, I'm trying to apply an ease-in/out curve to the movement using RelativePosition, and the way I'm doing it obviously is fighting with the SplineController's attempts to set the RelativePosition. 

So is there a guide/example somewhere of the right way to augment/extend the splineController?

Or is there a "dumb" version of the SplineController that doesn't try to apply some default settings, so you can fully script the inputs?

Thanks, JJ

There are no proper guidelines defined, but here are some advises if you need to setup your own controller behavior:
  • Avoid modifying CurvyController: inherit from the class instead, and modify whatever aspect you need by overriding the available methods. This will avoid you handling conflicts if CurvyController is modified in an upcoming update.
  • ComputeTargetPositionAndRotation is the method to override if you want to have a custom orientation logic.
  • If you have your own logic to define the controller's position (like the easing you want to implement), you should make sure that the controller doesn't update the position too. You can do this by simply setting the controller speed to 0, or by overriding Advance (and SimulateAdvance if you use the OffsetCompensation feature)
  • The method to override if you want to drastically change the controller's behavior is InitializedApplyDeltaTime.
Did these points answer your question?
Have a nice day.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Yep, that's the kind of advice I'm looking for, Thanks!

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Working with Connections burn0815 3 580 05-28-2021, 11:24 AM
Last Post: _Aka_
  SplineController slows down approaching connections jh092 5 2,108 08-07-2020, 03:56 PM
Last Post: _Aka_
  make "GetCurrentControlPoint" in SplineController more accessable VampirasuGameStudio 2 1,823 04-19-2020, 02:03 PM
Last Post: _Aka_
  Facade class which inherits SplineController ATHellboy 1 1,301 01-30-2020, 10:13 AM
Last Post: _Aka_

Forum Jump: