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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 97 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 354 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 121 01-02-2025, 09:58 AM
Last Post: _Aka_
  Newly created spline is invisible quickytools 7 223 12-21-2024, 10:14 AM
Last Post: _Aka_

Forum Jump: