Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using curvy for camera pathing, through a procedural level
#2
Hi,

pretty much questions for a single post Wink

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
Reply


Messages In This Thread

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 5 03-27-2024, 07:25 AM
Last Post: amutp

Forum Jump: