Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Incorrect mesh alignment after extrusion on curved path
#9
In file CurvySplineSegment.cs at line 1340, you will find this method:
public Vector3 GetTangent(float localF, Vector3 position, Space space = Space.Self)
In it, you will find this line
const float fIncrement = 0.01f;
Change the value to 0.001f, or even 0.0001f. You will get better results, but might see issues in small splines (around 1m length or less).
This is just a workaround. A real fix that I should implement is to set that value dynamically, depending on the length of the spline segment.
Did this fix the issue?
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
RE: Incorrect mesh alignment after extrusion on curved path - by _Aka_ - 04-16-2024, 11:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 7 26 04-30-2024, 11:17 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: