Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
To dynamic generate the connection between paths
#1
Hi, right now I'm trying to implement the feature to allow "SpineController" switch between 2 "CurvySpline"
problem was the timing should define by the NPC itself.

so the connection wasn't predefined on scene yet, how can I achieve that feature ?

it's my first time try to use this plugin, but I do have some experience on bezier curve.
here is the project I'm working on the yellow gizmos line appear on scene was the feature I'm talking about.
any idea where should I start ?


the logic in video as follow.

  1. Assume we got 2 CurvySpline A & B
  2. Get ship current position & rotation on Curve A.
  3. project direction vector based on ship's velocity & heading, and use that point as reference to locate the closest point on Curve B.
    similar to CurvySpline.GetNearestPointTF()
  4. Generate tangent via subdividing. (Not sure how to do that in Curvy)
  5. Travel on temporary path until reaching 100%, switch to Curve B. (Not sure how to do that in Curvy)
Reply


Messages In This Thread
To dynamic generate the connection between paths - by Canis - 08-07-2020, 07:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
Thumbs Up Can't delete connection lacota 3 6 03-16-2024, 11:34 AM
Last Post: _Aka_
  Cant Generate Meshes At Runtime alms94 5 22 01-26-2024, 11:27 AM
Last Post: _Aka_
Lightbulb Junction & Connection Navigation System Design SAMYTHEBIGJUICY 4 13 11-27-2023, 01:04 PM
Last Post: _Aka_

Forum Jump: