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
  Multiple controllers on one spline breaks stuff Lupp_ 20 514 01-03-2020, 08:20 PM
Last Post: Lupp_
  Look rotation viewing vector is zero skyboard 6 2,094 12-02-2019, 06:53 PM
Last Post: _Aka_
  Spawn object on Curvy Spline. ktpttd 3 286 11-20-2019, 01:38 PM
Last Post: _Aka_
  Dummy spline points hnngaf 1 172 11-17-2019, 06:01 PM
Last Post: _Aka_

Forum Jump: