Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make "GetCurrentControlPoint" in SplineController more accessable
#1
Hi folks,

first of all i wanna say that your asset is quiet nice!
At the moment i am working on a system where objects should follow a list of splines and should have some
breaks at specific positions (ControlPoints/SegmentPoints). Also they should lower there speed on approaching.
To archive this i implemented a new Controller derieved from SplineController. The problem is to get the current
and the next Controlpoint because the method "GetCurrentControlPoint" is set to private. I think it make sense to
put it at least on protected.

greetings,
Sebastian.  Rolleyes
Reply
#2
Hi,

Thanks for the compliment.

When I wrote GetCurrentControlPoint, I wasn't expecting it to be used by any other class. Since you inherit from SplineController, I see why you might need it. Normally I would have thought that people will use CurvySpline's methods such as TfToSegment or DistanceToSegment.

I am thinking of reworking the implementation of SplineController in one of the next updates to avoid some edge cases and add some features. I will then think about making GetCurrentControlPoint accessible if its existence is still needed.

Thanks for the suggestion, and 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.
Reply
#3
Hi,
I will soon release the update I spoke about. GetCurrentControlPoint was removed. To get the current control point, use the existing CurvySpline methods such as TFToSegment and DistanceToSegment. This is how the controller does it.
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make dashed lines? Econt 3 44 Yesterday, 01:47 PM
Last Post: _Aka_
  SplineController slows down approaching connections jh092 5 117 08-07-2020, 03:56 PM
Last Post: _Aka_
  Make GameObject Face towards Spline Path linkinballzpokemon 5 233 07-14-2020, 08:27 PM
Last Post: _Aka_
  Make connection between 2 control points dazz777 11 1,984 04-17-2020, 01:37 PM
Last Post: _Aka_

Forum Jump: