Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Curve Spline be used for an in game level editor.
#4
(05-01-2023, 04:43 PM)Lupos Wrote: That's great to hear. Is it possible to have generated objects be placed on nodes/points only, and have other generated objects only create between nodes?

Placing objects on the node is simple, since every node is its own GameObject, you can simply iterate through them via script and place your game objects.
For placing objects in between, you can either
  • do it via script. The main methods you will need are CurvySpline.InterpolateByDistance and CurvySplineSegment.Length. Using these methods, you can find the position of points on the spline at equal distance from each other.
  • use the Curvy Generator (using the Volume Spots module). This module offers a lot of options when it comes to placing objects on a spline.
    Here is a tutorial showing how to use the generator for that usage: https://youtu.be/jUrpY9-8xH4
    Here is the documentation of said module: https://curvyeditor.com/documentation/generator/modules/volumespots 


(05-01-2023, 04:43 PM)Lupos Wrote: Also can nested child objects be curved?
Yes they can. In this tutorial, at the moment specified in the link, you can see that the RailBlock object has nested game objects: https://youtu.be/eP6QEn9SFoM?t=383
The scene in the tutorial is part of the package.

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


Messages In This Thread
RE: Can Curve Spline be used for an in game level editor. - by _Aka_ - 05-01-2023, 07:40 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: