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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  Does CurvySplines support displaying handles and points during runtime? niuage 1 7 12-11-2023, 12:01 PM
Last Post: _Aka_
  Connection "next' control point jh092 3 15 11-22-2023, 11:47 AM
Last Post: _Aka_
  animating points on a spline Antonio 11 19 09-17-2023, 09:55 AM
Last Post: _Aka_

Forum Jump: