Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is curvyspline a good solution for a 2D rail grinding game?
#2
Hi

From my understanding of your needs, Curvy Splines would do the job.

About your question: "Would this just be a matter of getting the spline component of the collided spline gameobject?"
The collided gameobject does not have the spline component in it. The spline component is in a spline gameobject. That spline gameobject is then used by an instance of Curvy Generator (another game object) to make the extrusion. In other words, the spline is an input of the Curvy Generator, while the generated mesh is its output.

That being said, making the link between the spline and the mesh should not be difficult. You can make a script that processes the Curvy Generator, by adding some custom component to the output gameobjects. That custom component will reference the input spline of the Curvy Generator. Then, at collision time, you retrieve the custom component from the collided gameobject, and thus get a reference to the associated spline.
Was my explanation clear enough?

I hope this helped
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: Is curvyspline a good solution for a 2D rail grinding game? - by _Aka_ - 03-01-2022, 11:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Visual Studio solution integration Pfhoenix 1 1 01-04-2024, 11:02 AM
Last Post: _Aka_
  3D Platformer Rail Grind Asarge 1 6 07-19-2023, 09:12 AM
Last Post: _Aka_
  I have a question about curvySpline haifeng.huang 12 32 07-14-2023, 09:34 AM
Last Post: _Aka_
  Can Curve Spline be used for an in game level editor. Lupos 30 71 06-03-2023, 10:58 AM
Last Post: _Aka_

Forum Jump: