Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some times mesh distortion.
#6
Hi,

A Bézier spline is defined by both the CPs and their handles. If needed, this link is a good start to understand how Bézier splines work:
https://en.wikipedia.org/wiki/B%C3%A9zier_curve

Curvy by default sets automatically the handles of CPs based on their neighbors to keep the spline smooth. This automatically set value can't possible be the right one for all use cases. So you will need to define your own handles position, and then set it up through Curvy.


To set the handles of a CP, you have to set the CP's "Auto Handles" option to false, then set the values of "Handle In" and Handle Out". These values are available both through the inspector and the API.

Once you understand how Bézier splines work, you can see in the link bellow how to set up two consecutive CPs and their handles to simulate an arc of a circle. This might help you find a solution to how to define your handles.
http://spencermortensen.com/articles/bezier-circle/

Before trying to find the formula that will give you the right Bézier handles for your automatically generated spline, I think it will help to first try to find a solution manually using the editor, and to then deduce the logic behind what you consider the right handles setup.

I hope this helped
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


Messages In This Thread
Some times mesh distortion. - by mammuoils1 - 12-20-2019, 08:56 AM
RE: Some times mesh distortion. - by _Aka_ - 12-20-2019, 12:17 PM
RE: Some times mesh distortion. - by mammuoils1 - 12-23-2019, 03:36 AM
RE: Some times mesh distortion. - by _Aka_ - 12-23-2019, 07:18 PM
RE: Some times mesh distortion. - by mammuoils1 - 12-24-2019, 10:00 AM
RE: Some times mesh distortion. - by _Aka_ - 12-24-2019, 05:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
  Not seeing mesh extended after following YT PaulM 1 3 02-02-2024, 12:01 PM
Last Post: _Aka_
  Trigger Zones along Spline Mesh dlees9191 1 5 01-05-2024, 10:18 AM
Last Post: _Aka_

Forum Jump: