Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dummy spline points
#2
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?
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
Dummy spline points - by hnngaf - 11-14-2019, 02:08 PM
RE: Dummy spline points - by _Aka_ - 11-17-2019, 06:01 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: