Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deform mesh on the spline
#1
Hello, how can i deform a mesh while is traveling through the spline? Example, the mesh is a cylinder, when it reach the green point it gets the same form as the mesh... Very similar to a train on rails, but its just a cylinder traveling through the spline... Thanks for any help


[Image: UIVs0W3.jpg]
Reply
#2
Hello
You can generate a deformed mesh, but can't deform an already existing mesh.
The deformed mesh is generated by extrusion, via the Curvy Generator. You can extrude one or multiple shapes along a path. Please see the following to see how it is done:
- Any example scene with an extruded mesh, scene "variable mesh extrusion" for example (not the exacte name, I don't have access to a computer right now to give you the exacte name, I am on vacation)
- https://curvyeditor.com/documentation/generator/start
- https://curvyeditor.com/documentation/generator/modules/shapeextrusion
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
#3
(10-06-2019, 02:50 AM)_Aka_ Wrote: Hello
You can generate a deformed mesh, but can't deform an already existing mesh.
The deformed mesh is generated by extrusion, via the Curvy Generator. You can extrude one or multiple shapes along a path. Please see the following to see how it is done:
- Any example scene with an extruded mesh, scene "variable mesh extrusion" for example (not the exacte name, I don't have access to a computer right now to give you the exacte name, I am on vacation)
- https://curvyeditor.com/documentation/generator/start
- https://curvyeditor.com/documentation/generator/modules/shapeextrusion
I hope this helped
Have a nice day

Hi... i created a generator, tried to do a cylinder, created a prefab, and after... tried to add it to the endless runner scene , but i canĀ“t see it
, so with this generator mesh.. i could move as a snake through the spline path?

[Image: PhJP9tR.png]
[Image: yST1Z2E.png]
[Image: ljscUrD.jpg]
Reply
#4
Hello

Sorry for the late answer.

From my understanding, you are asking two questions
1- why the cylinder is not showing up
2- if you can move like a snake through the path

Here are my answers:

1-there can be multiple possible reasons for your issue. Please check that:
+ the prefab includes all the needed splines
+ no warning displayer in the generator modules
+ no warning or errors displayed in the console
If after all that you didn't find the issue, unpack the prefab instance and place it at the root of the scene (no parent object).

2- when extruding an object, the range parameter in the extrusion module can be used to define the part of the path the extrusion should apply on
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
  Curvy Line Renderer for UI Spline? gekido 1 1 1 hour ago
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 2 1 hour ago
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 3 03-26-2024, 01:12 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: