08-23-2014, 04:39 PM
Hi,
pretty much questions for a single post
Well, the solution depends on whether you want to use your own orientation or Curvy's one. Using Curvy, you could set Orientation to "Control Points", then the spline rotation is defined by CP rotations. In alternative, you might get better results to leave "Tangent" mode orientation and just set the first CP's rotation to define the starting Up-Vector (Enable "Orientation Gizmos" in the View-Settings to see the results).
If you have a TF value or distance, it's easy to find the segment you're currently moving over, see the conversion methods API here. Once you have a CP, you can use CurvySplineSegment.NextSegment or CurvySplineSegment.NextControlPoint to walk through the Spline (and PrevSegment etc..). Just lookup the CurvySplineSegment class in the docs.
Btw, Segments and Control Points are two terms for the same class object (CurvySplineSegment), but the first refers to a visible (or computable) part of the spline, while the latter is just used as a Transform (e.g. if you close a spline, the last CP becomes a segment).
Best regards,
Jake
pretty much questions for a single post
Well, the solution depends on whether you want to use your own orientation or Curvy's one. Using Curvy, you could set Orientation to "Control Points", then the spline rotation is defined by CP rotations. In alternative, you might get better results to leave "Tangent" mode orientation and just set the first CP's rotation to define the starting Up-Vector (Enable "Orientation Gizmos" in the View-Settings to see the results).
If you have a TF value or distance, it's easy to find the segment you're currently moving over, see the conversion methods API here. Once you have a CP, you can use CurvySplineSegment.NextSegment or CurvySplineSegment.NextControlPoint to walk through the Spline (and PrevSegment etc..). Just lookup the CurvySplineSegment class in the docs.
Btw, Segments and Control Points are two terms for the same class object (CurvySplineSegment), but the first refers to a visible (or computable) part of the spline, while the latter is just used as a Transform (e.g. if you close a spline, the last CP becomes a segment).
Best regards,
Jake