Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline editing questions
#4
I might be wrong (I am not the one who wrote that code in the first place), but my tests lead me to believe that the selection is handled by Unity, as long as the drawing is done in a OnDrawGizmos method using methods from the Gizmos class.

I have a unreleased API method that gets the nearest point from a ray. I haven't tested it and optimized it properly yet. I attached it to this post. This code was written some time ago, so it might not build with the latest version. If it is the case, and you can't fix the build yourself, let me know so I can help.

Did this help?


Attached Files
.cs   TestNeaerest.cs (Size: 1.33 KB / Downloads: 3)
.cs   CurvySpline_Ray.cs (Size: 3.13 KB / Downloads: 3)
.cs   CurvySplineSegment_Ray.cs (Size: 2.44 KB / Downloads: 3)
.zip   NearestRay.zip (Size: 3.78 KB / Downloads: 2)
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
Spline editing questions - by giollord - 12-03-2021, 10:51 AM
RE: Spline editing questions - by _Aka_ - 12-03-2021, 12:28 PM
RE: Spline editing questions - by giollord - 12-03-2021, 06:52 PM
RE: Spline editing questions - by _Aka_ - 12-03-2021, 10:29 PM
RE: Spline editing questions - by giollord - 12-04-2021, 06:36 AM
RE: Spline editing questions - by _Aka_ - 12-04-2021, 02:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Spots from 2 samples. BitBlit 8 892 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,279 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 931 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 5,022 07-29-2025, 09:15 PM
Last Post: _Aka_

Forum Jump: