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...Enter.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
  Spawn object on Curvy Spline. ktpttd 3 129 11-20-2019, 01:38 PM
Last Post: _Aka_
  Refresh spline doesn't seem to be working dazz777 4 176 11-13-2019, 11:13 PM
Last Post: _Aka_
  Same Spline Extrusion with variable width MarioBag 5 870 11-04-2019, 01:56 PM
Last Post: _Aka_
  Change curvy gizmos to show direction of spline Horibe 1 102 11-01-2019, 07:02 PM
Last Post: _Aka_

Forum Jump: