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

First, thanks for this nice lib, really powerful and helpful! Already getting awesome results after a few hours of dev.

Little question tho, is this possible - and what would be the best approach - to "parent" the control points together. I mean, I'd like to update the control points transform at runtime, as such the children control points transforms become relative to the parent control point. I tried to manually parent them but it doesn't seems to work.

Is this something doable or not?

Thanks for your feedback Big Grin
Reply
#2
Thanks Brice, I am happy to see that Curvy Splines was useful to you.

I am not sure about what you are trying to do.
If you are trying to achieve something like the attached picture, then it is not possible, because the spline will consider only the Control Points (CPs for short) that are a direct child, so in this example only 00, 08 and 13.
If this is indeed what you try to achieve, why do you need that?
You can on the other hand have splines being children of other splines. I never worked with this unusual setup, so it might lead to bugs I am unaware of, but this might work.


Attached Files Thumbnail(s)
   
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#3
Thanks for your quick reply.

That's exactly what I'm trying to achieve, and I didn't think about nesting splines into others: good idea! I will give it a try and let you know if it works Wink
Another way would be to keep the CPs the way they are but to add some kind of parent-children components to the CPs to build up fake relationships between them, based on references, and sync their transforms at runtime. I will also give it a try.

Thanks again.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to generate gameobject on the control point Yang Yi 0 1 Yesterday, 11:43 AM
Last Post: Yang Yi
  Scene 51: Dynamic track between two points wallflower6 3 8 08-19-2024, 08:18 AM
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 9 03-28-2024, 10:08 PM
Last Post: _Aka_

Forum Jump: