playMaker

Author Topic: Getting the position of a knot in a spline [SOLVED]  (Read 543 times)

RobotGoggles

  • Playmaker Newbie
  • *
  • Posts: 39
Getting the position of a knot in a spline [SOLVED]
« on: April 18, 2026, 08:37:18 PM »
I've got a pretty good system going for moving my flying enemies on a series of connecting spline paths using Unity's built in spline system. The one piece I can't seem to figure out how to access in Playmaker is getting the position (either local or world) of a particular Bezier knot of a spline container.

I know it's totally possible in code, and the positions are even visible in the inspector, so there's got to be an easy way to access them in Playmaker, right?
« Last Edit: April 19, 2026, 10:39:01 AM by RobotGoggles »
When life hands you insomnia, make video games.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4368
  • Official Playmaker Support
    • LinkedIn
Re: Getting the position of a knot in a spline
« Reply #1 on: April 19, 2026, 12:27:30 AM »
You can get/set some SplineContainer properties using Get/SetProperty actions, but you need a custom action to get knot positions.

I'm not sure if someone has made custom actions for the unity spline system yet, but I've attached an action that should work. There's minimal error checking so you should only use this in a project that has the spline package imported.

RobotGoggles

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Getting the position of a knot in a spline
« Reply #2 on: April 19, 2026, 10:38:21 AM »
Wow that's exactly what I needed. Thanks Alex!
When life hands you insomnia, make video games.