Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dummy spline points
#1
Hello,

Have you ever or would you ever consider adding support for dummy points on the spline? These points would not drive the spline shape but instead follow it. These would be useful as triggers or meta data holders that can be moved around and set freely without changing the spline shape. They would be bound to the segment they're on as distance or percentage from beginning / end and would migrate to adjacent segment(s) in case the one they're currently on is deleted. Currently, for example, if you have a nice curvy curve defined by two points and you want to throw in a trigger somewhere between the two points, it gets a bit fiddly to setup the new control point and its tangents to get the old seamless curvature when all you wanted to do was have a trigger there and not really influence the curve.

Thanks
Reply
#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


Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 0 0 8 hours ago
Last Post: ShiroeYamamoto
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 13 03-04-2024, 11:06 AM
Last Post: _Aka_
  Keeping a fixed spline length jh092 3 16 02-21-2024, 06:25 AM
Last Post: Primrose44

Forum Jump: