Posts: 2
Threads: 1
Joined: Oct 2019
10-05-2019, 08:11 AM
(This post was last modified: 10-05-2019, 08:15 AM by Nico_CL.)
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
Posts: 1,750
Threads: 77
Joined: Jun 2017
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.
Posts: 2
Threads: 1
Joined: Oct 2019
(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?
Posts: 1,750
Threads: 77
Joined: Jun 2017
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.