11-17-2019, 06:01 PM
Hi
First of all, sorry for the late answer. I did answer you shortly after you posted your question, but it seems that because of some internet issues in the city I live at, it seems that my answer was not successfully send.
What you can do is to use a collider to trigger events, and add a Spline Controller to said collider to make it positioned on the spline. This way, even if you modify the spline, the trigger will stay at the same distance/TF on the spline.
More about Unity's triggering
https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnTriggerEnter.html
https://docs.unity3d.com/Manual/class-BoxCollider.html
Was my answer useful?
First of all, sorry for the late answer. I did answer you shortly after you posted your question, but it seems that because of some internet issues in the city I live at, it seems that my answer was not successfully send.
What you can do is to use a collider to trigger events, and add a Spline Controller to said collider to make it positioned on the spline. This way, even if you modify the spline, the trigger will stay at the same distance/TF on the spline.
More about Unity's triggering
https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnTriggerEnter.html
https://docs.unity3d.com/Manual/class-BoxCollider.html
Was my answer useful?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.