Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bad rotation
#5
(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 = trueWink
and also set rotation to Zero(ControlPoint.SetRotation(quaternion.Euler(Vector3.zero))Wink

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!
Reply


Messages In This Thread
bad rotation - by aloriza - 11-22-2023, 09:51 PM
RE: bad rotation - by _Aka_ - 11-22-2023, 11:45 PM
RE: bad rotation - by aloriza - 11-23-2023, 11:31 AM
RE: bad rotation - by _Aka_ - 11-23-2023, 09:02 PM
RE: bad rotation - by aloriza - 11-29-2023, 09:31 AM
RE: bad rotation - by _Aka_ - 11-29-2023, 09:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rotation issue with generator nicolaj.h.andersen@gmail.com 1 16 04-14-2023, 11:58 AM
Last Post: _Aka_
Photo Rotation anchors tairoark 4 11 06-01-2022, 02:54 PM
Last Post: _Aka_
  Align to spline action and rotation Lupp_ 3 1,341 01-23-2021, 08:12 PM
Last Post: _Aka_
  Rotation of Curvy Spline Segment jh092 1 1,350 05-31-2020, 09:36 AM
Last Post: _Aka_

Forum Jump: