05-12-2021, 12:06 PM
Hi
The auto handles are a way to automatically set handles that satisfy most use cases. Yours unfortunate does not fit. So for your case you will have to specify explicitly the handles you want. If you manage to find a formula that generates the handles as you want them to be, you can replace the formula used by Curvy's auto handles if you want. The current implementation is in this method in the CurvySplineSegment.cs file:
SetBezierHandles(float distanceFrag, Vector3 p, Vector3 n, bool setIn = true, bool setOut = true, bool noDirtying = false)
p and n are the deltas between current control point's position, and respectively the previous control point and the next one
Let me know if I can help more
Have a nice day
The auto handles are a way to automatically set handles that satisfy most use cases. Yours unfortunate does not fit. So for your case you will have to specify explicitly the handles you want. If you manage to find a formula that generates the handles as you want them to be, you can replace the formula used by Curvy's auto handles if you want. The current implementation is in this method in the CurvySplineSegment.cs file:
SetBezierHandles(float distanceFrag, Vector3 p, Vector3 n, bool setIn = true, bool setOut = true, bool noDirtying = false)
p and n are the deltas between current control point's position, and respectively the previous control point and the next one
Let me know if I can help more
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.