(05-02-2023, 08:09 PM)Lupos Wrote: Edit** If going the coding wrote, how can i get objects to curve towards the spline.
I assume that this question means: How to make an object, which position you specify, be deformed following a spline. Correct me if I am wrong.
The mesh deformation is done via the Deform Mesh module. That volume needs a Spots input, that defines the transform of the deformed mesh. The issue is that the Volume Spots does not implement placement rules that you want. So you have multiple choices:
- Modify the Volume Spots module (class: BuildVolumeSpots) to make it implement your logic. Not the easiest one.
- Make a new module that generates spots using your own logic. A wizard will help you create a module's skeleton at Project's window→Create→Curvy→CG Module. Not that complicated, but not that simple. You will most probably need to take a look on a simple spots generating module (such as Spots, class: InputSpots).
- Make a script, that is not a module, that will populate an existing Spots module (class: InputSpots). This module is basically a list of spots. This is the simplest solution.
FYI: the method that does the mesh deformation is DeformMesh.DeformMeshes. It is a public static method. This means that you can use in whatever code you want. I don't believe you will have to, but I am letting you know just in case.
(05-02-2023, 08:09 PM)Lupos Wrote: Thanks for taking the time to help out.You are welcome
If and when you feel like it, please leave a review for the asset, that helps a lot.
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.