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
  Refresh spline doesn't seem to be working dazz777 6 440 01-22-2020, 12:55 AM
Last Post: _Aka_
Big Grin How to get a point in Spline that is parallel with another Spline? curvyuser007 5 99 01-20-2020, 10:18 PM
Last Post: curvyuser007
  Wheel Collider to propel along Spline Phunyun 3 458 01-18-2020, 09:40 PM
Last Post: _Aka_
  Multiple controllers on one spline breaks stuff Lupp_ 20 693 01-03-2020, 08:20 PM
Last Post: Lupp_

Forum Jump: