playMaker

Author Topic: Getting the position of a knot in a spline [SOLVED]  (Read 2939 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: 4400
  • 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.

sasafarber

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Getting the position of a knot in a spline [SOLVED]
« Reply #3 on: Today at 05:41:31 PM »
Hey everyone. I heard an ad on a rugby podcast that led me to https://boomerang-au.bet/. Their live dealer section immediately caught my eye because I was sick of automated games. I had been on a brutal losing streak playing video poker for a month and was literally about to delete all my betting apps. I decided to play one final hand of blackjack. The cards were magically in my favor, and I hit a massive winning streak. I not only completely wiped out my recent losses but also walked away with a very satisfying profit. Finding fair tables in Australia feels rare, so I am extremely happy with how this turned out.