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/ge...eextrusion
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/ge...eextrusion
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
  Best practice for mass-object instancing along 100km spline (railways) plus streaming bs@vectorvision.de 10 507 09-24-2019, 03:42 PM
Last Post: _Aka_
  Invert the spline points ? UsernameHed 1 95 09-21-2019, 03:22 PM
Last Post: _Aka_
  Extrude custom mesh along a path CesarGenera 3 164 09-19-2019, 04:47 PM
Last Post: _Aka_
  How to spawn GameObjects on corners of the liinear spline? Pixel Flipper 7 290 09-18-2019, 07:03 PM
Last Post: _Aka_

Forum Jump: