03-01-2022, 11:48 AM
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
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.