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

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.

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to calculate curvature of spline jh092 3 63 08-01-2020, 04:51 PM
Last Post: _Aka_
  Simple Spline Extrusion GelsonBieber 3 324 07-29-2020, 02:34 PM
Last Post: _Aka_
Shocked Spline always going up into the air? jamesunity 6 201 07-20-2020, 08:32 PM
Last Post: _Aka_
  Make GameObject Face towards Spline Path linkinballzpokemon 5 207 07-14-2020, 08:27 PM
Last Post: _Aka_

Forum Jump: