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
  I want to make the beginning and end of a mesh translucent. yanke 3 4 05-21-2022, 11:53 AM
Last Post: _Aka_
  How do I make the computer ignore it's parent transform? eastes 3 7 04-06-2022, 12:16 PM
Last Post: _Aka_
Wink In SplineController OnPositionReachedList Event is missing shimizu 2 10 02-07-2022, 12:47 PM
Last Post: shimizu
  best way to rotate, change offset, and inset position of splinecontroller object smackledorf 1 17 01-17-2022, 01:39 PM
Last Post: _Aka_

Forum Jump: