Use the Curvy Splines integration when a behavior tree needs to create, query, align with, or update a Curvy spline and its control points.

Install the integration

  1. Download the current Curvy Splines integration from Opsive Downloads.
  2. Import BehaviorDesignerCurvy.unitypackage.
  3. Confirm Get Nearest Point appears in the Task List.

What the integration adds

  • Spline tasks: Create Spline, Insert Control Points, Get Control Point, Delete Control Points, Get Nearest Point, Get Segment Value, Get Value, Align To Spline, Is Initialized.

Insert Control Points inserts new points into the spline. Get Control Point retrieves one point by index; it does not return the complete collection.

Build a first workflow

  1. Create and initialize a Curvy spline in a small scene.
  2. Use Is Initialized before any query task.
  3. Use Get Nearest Point to store the nearest spline position for the agent.
  4. Use Align To Spline or a project movement task to produce the visible motion.