Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline editing questions
#5
(12-03-2021, 10:29 PM)_Aka_ Wrote: 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?

Thanks, it is very helpful! I will try out your script at weekend
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 894 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,280 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,024 07-29-2025, 09:15 PM
Last Post: _Aka_

Forum Jump: