Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syncing UI Spline and Regular 3D Spline
#4
Hi

You will need to define the positions and tangents of the curve at the relevant points based on your constraints, and then transpose those positions and tangents to the spline. To do that, the best solution I think is to use splines with interpolation type set to Bezier. With Bezier splines, you can set the handles of each control points, which are the tangents of the curve at that point.

Here are some links that helped me figure out the mathematics behind approximating circular arcs with Bezier splines
https://www.researchgate.net/publication/265893293_Approximation_of_a_cubic_bezier_curve_by_circular_arcs_and_vice_versa
http://hansmuller-flex.blogspot.com/2011/04/approximating-circular-arc-with-cubic.html
http://hansmuller-flex.blogspot.com/2011/10/more-about-approximating-circular-arcs.html

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
RE: Syncing UI Spline and Regular 3D Spline - by _Aka_ - 03-13-2019, 11:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 14 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: