05-05-2016, 02:45 PM
(05-05-2016, 10:08 AM)Jake Wrote: After examining the scene the problem seems to being caused by the spline's RestrictTo2D mode in combination with Dynamic Orientation. If you disable 2D, you'll notice the orientation rolls in curves (like a plane would fly the path), but using 2D makes the dynamic orientation pointless.
I switched Orientation to Static and set a proper rotation (-90,0,0), then it looks like expected.
Thank you for your answer!
The road stays correctly aligned, but I still get this issue:
This is what I did: I switched the orientation to static (and turned off restrictTo2D) and when I generate the control point I used the following line of code:
Code:
CSS.rotation = Quaternion.LookRotation(new Vector3(-90, 0, 0)); //CSS = a CurvySplineSegment
Thanks again!