Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add ControlPoint "ahead" of spline end
#3
Thanks so much for the quick reply.

I've been playing around some more now that you have confirmed that GetTangent is probably the way to go. I came up with this which is working the way I want it to. Thank you again.

Code:
var v = spline.GetTangent(1).normalized;
var pos = spline.ControlPointsList[spline.ControlPointCount - 1];
spline.Add(pos.transform.localPosition + v * 10);
Reply


Messages In This Thread
Add ControlPoint "ahead" of spline end - by jh092 - 10-22-2023, 07:57 PM
RE: Add ControlPoint "ahead" of spline end - by jh092 - 10-23-2023, 07:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Issue Leading to Unity Freeze Pankaj09 1 204 08-24-2026, 11:28 PM
Last Post: _Aka_
  Connecting Multiple Spline Nodes Issue Ritesh Kadam 1 165 08-22-2026, 11:24 PM
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 1,083 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,475 04-12-2026, 03:18 PM
Last Post: _Aka_

Forum Jump: