Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make "GetCurrentControlPoint" in SplineController more accessable
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.

Sebastian.  Rolleyes

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.

Possibly Related Threads...
Thread Author Replies Views Last Post
  SplineController Delta after instantiate(Bug?) Marc Mitchell 5 405 11-26-2019, 08:38 PM
Last Post: _Aka_
  How make a new connection between splines ? adeel_hamza 2 227 11-13-2019, 11:09 PM
Last Post: _Aka_
  make a spline branch smoothly off another spline dazz777 3 939 06-06-2019, 08:16 PM
Last Post: _Aka_
  How can I make the path visible in game? PretzelStudios 4 981 06-02-2019, 09:01 PM
Last Post: _Aka_

Forum Jump: