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
  Syncing UI Spline and Regular 3D Spline arrnav96 8 305 03-21-2019, 12:13 PM
Last Post: _Aka_
  How do I find closest spline ? dazz777 4 294 02-20-2019, 09:47 AM
Last Post: dazz777
  Rotation issue on a Parented Spline Controller Karthik7Nike 6 901 12-07-2018, 09:35 AM
Last Post: _Aka_
  Generated meshes not 'parallel' to spline Alexey 8 1,285 11-20-2018, 07:13 PM
Last Post: Alexey

Forum Jump: