Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spline extrusion gaps
#1
Hi, I'm new to curvy.
I have a spline extrusion path that i use for roads, 
I use spline information for sideways movement relative to spline path.

I want to know how can I create gaps on the spline extrusion mesh? Like I have a spline path I need to follow, there is a generated mesh along that path, but I want that generated mesh to have gaps at specific areas so I can replace the gap with obstacles like water/hole on the road. 

Like I want a 2m gap at CP2, how can I achieve something like this?
Reply
#2
Hi

The Range parameter allows you to make an extrusion on a subsection of the path spline.
https://curvyeditor.com/documentation/generator/modules/shapeextrusion#reference
For N holes, you will need to have N+1 extrusion modules (basically N+1 solid sections of the path). This can be tedious to do by hand. I recommend using the API to automatically create and configure the modules. You can see that done in the Infinite Track example scene.

Maybe, depending on your specific case, you can have the desired effect by extruding the mesh on the whole path, but scaling down the extrusion in the parts that will be hidden by the obstacles.
https://curvyeditor.com/documentation/generator/modules/shapeextrusion#scale

I hope this helped
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


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_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: