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
  Best way to duplicate a spline with an offset Kapistijn 7 663 02-07-2026, 07:59 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 495 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,064 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 5,629 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: