Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to override CP rotation when drawing a spline?
#1
Hi!

I need to draw quite a long spline where rotation of each control point depends on it's position. I don't want to update it each frame or anything, just rotate it at the moment of creation.

I've added code that rotates transform of newCP.gameObject at the end of CurvyToolbar.addCP method but it seams that rotation is overriden somewhere later and I cannot find it.

My bad. I hit a corner case for my method which didn't show up in other use cases. So, yeah, injecting code into CurvyToolbar.addCP works.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to merge intersecting meshes at spline connections? Reign_of_Light 2 3 03-20-2023, 08:36 AM
Last Post: Reign_of_Light
Video Spline Gizmos & Segments Invisible while Drawing ricke 7 14 03-13-2023, 05:31 PM
Last Post: _Aka_
  How to fill a closed spline with mesh FanManPro 6 6 02-25-2023, 09:44 AM
Last Post: _Aka_
  How can I attach the component to the mesh generated from the spline? Chanon 1 3 02-11-2023, 09:17 AM
Last Post: _Aka_

Forum Jump: