07-25-2023, 12:16 PM
Problem, as far as I can see, is detecting vertical inclination angle of the train:
Vector3.SignedAngle(Vector3.up, this.transform.forward, Vector3.up)
and after that what is next Segment according to that angle, train position on Spline and Spline orientation.
Anyone knows how to achieve this ^^^ ?
Vector3.SignedAngle(Vector3.up, this.transform.forward, Vector3.up)
and after that what is next Segment according to that angle, train position on Spline and Spline orientation.
Anyone knows how to achieve this ^^^ ?