Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Equally spaced points on Bezier
#1
Is there functionality in Curvy to obtain equally spaced points from a Bezier curve?

For example, if you requested 10 equally spaced points from a curve, you would receive 10 points back that are all equal distance apart (or as close as possible to equal).  The distance between the points is measured along the curve.
Reply
#2
Hi,
Use CurvySpline.InterpolateByDistance(x), with x being (CurvySpline.Length / 10) * index, the index being a value from 0 to 10
Is it clear?
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
That is perfect, thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Missing Bezier Handles in Unity 2021.2.1f1 Flibble 3 159 11-20-2021, 05:08 PM
Last Post: _Aka_
  Split existing segment(s) with additional control points KStress71 1 251 09-09-2021, 05:46 PM
Last Post: _Aka_
  Autogenerate bezier curve with a given direction AnAsianPanda 3 508 08-06-2021, 09:08 AM
Last Post: _Aka_
  Spline deformation & Bezier spline connection alignment digot 7 1,585 04-18-2021, 03:39 PM
Last Post: _Aka_

Forum Jump: