08-11-2023, 02:16 AM
(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));

