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
  Absolute distance along spline for Shape Extrusion Module amutp 3 224 10-31-2021, 10:26 AM
Last Post: _Aka_
Question Generating a path from selected point to the beginning of spline on a closed spline? Zendariel 5 342 10-29-2021, 01:57 PM
Last Post: _Aka_
  Controller/Spline flipping object topquarkone 4 306 10-28-2021, 05:02 PM
Last Post: _Aka_
  How to find out whether the spline is self-intersected. mydayz 1 198 10-19-2021, 12:08 PM
Last Post: _Aka_

Forum Jump: