11-29-2023, 09:31 AM
(11-23-2023, 09:02 PM)_Aka_ Wrote: Hi
The mesh generator is not the problem. The problem is from the orientation of the spline. To see what I am talking about, activate the display of the spline's orientation. To do so, go the toolbar, then the View Options, then tick "Orientation". Here is a video extract where this operation is done, plus more explanation about the orientation of splines.
https://www.youtube.com/watch?v=hHLdW_FRtfw&t=811s
So, based on what the gizmo displays, the orientation explanation in the tutorial and the documentation I shared in my earlier post, make sure your spline's control points are rotated properly to avoid the 180 rotation. I suggest to try to fix the spline first by hand, so you can visualize what's going on, and once you see what the issue is and what its fix is, then try to implement the fix in your spline generating code.
I hope this helped.
Have a nice day
i steel cant make it work
i changed the spline orientation to dynamic
and do this codeĀ when adding new segment (SerializedOrientationAnchor = true
and also set rotation to Zero(ControlPoint.SetRotation(quaternion.Euler(Vector3.zero))
but steel i have to much rotation in my road ( maybe its becuae of tangents )
i want to limit that rotation of my roadĀ
if you want to help me send some code man
thanks!