Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Curve Spline be used for an in game level editor.
#8
(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:
  1. Modify the Volume Spots module (class: BuildVolumeSpots) to make it implement your logic. Not the easiest one.
  2. 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).
  3. 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.
Reply


Messages In This Thread
RE: Can Curve Spline be used for an in game level editor. - by _Aka_ - 05-03-2023, 12:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 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: