Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating splines from the surface of existing 2d colliders
#1
I work with a lot of complex 2d polygon and edge colliders. These already exist in my scenes. Is it possible to auto generate splines that follow the outlines of these colliders? Essentially the reverse of creating colliders from existing splines. If this isn't possible out of the box, is there a good way for me to accomplish this with the API? (I do not own the asset at this point.)
Reply
#2
Hi
You can do that via the API. You can see a simple usage of the API here:
https://www.youtube.com/watch?v=dhd08ECF...fS&index=3
So in your case, you will set the spline's interpolation type to Linear, and then go thought all your collider's points and add them to the spline.
Let me know if you need more details.
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#3
Thanks for the quick reply! I think that should do the trick...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Spawn at start/ end of splines rickgplus 4 232 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 121 03-18-2025, 10:11 PM
Last Post: _Aka_
Smile Simple splines movement shills 3 384 02-26-2025, 09:40 AM
Last Post: _Aka_
  Mesh Generation between two splines vatan 4 440 02-14-2025, 07:11 AM
Last Post: vatan

Forum Jump: