Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to detect bend in a spline or strait part of spline at position
#4
(07-30-2023, 05:14 PM)velikizlivuk Wrote: Will try, thank You!

Hey guys, just to add to this discussion I tried something like the below to get a variable for the lean angle to use at that point but I suppose there must be a better way if anyone has any ideas as I'm not sure the tf amount I'm using will always represent the same distance. 

                Vector3 Cornernow = Spline.GetTangent(mTF);
                Vector3 Cornercomingup = Spline.GetTangent(mTF + 0.01f);

                Debug.Log("lean angle " + (Cornernow.x-Cornercomingup.x));
Reply


Messages In This Thread
RE: How to detect bend in a spline or strait part of spline at position - by SAMYTHEBIGJUICY - 08-11-2023, 02:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,289 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 644 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,429 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,162 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: