Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unpredictable mesh generation
#3
(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!
Reply


Messages In This Thread
unpredictable mesh generation - by BlackRainbowFT - 05-04-2016, 12:24 PM
RE: unpredictable mesh generation - by Jake - 05-05-2016, 10:08 AM
RE: unpredictable mesh generation - by BlackRainbowFT - 05-05-2016, 02:45 PM
RE: unpredictable mesh generation - by Jake - 05-06-2016, 08:51 AM
RE: unpredictable mesh generation - by Jake - 05-18-2016, 07:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 19 04-17-2024, 10:57 AM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
  Not seeing mesh extended after following YT PaulM 1 3 02-02-2024, 12:01 PM
Last Post: _Aka_
  Trigger Zones along Spline Mesh dlees9191 1 5 01-05-2024, 10:18 AM
Last Post: _Aka_

Forum Jump: