playMaker

Author Topic: Get Velocity 2d - Not retrieving values  (Read 2768 times)

Ravencroft

  • Playmaker Newbie
  • *
  • Posts: 7
Get Velocity 2d - Not retrieving values
« on: March 17, 2022, 04:09:05 PM »
I seem to be having issues with Get Velocity 2d. As you can see in the picture the object it gets is the player and in the inspector you can see that there is velocity in the Rigidbody 2d so the action should be retrieving those details. It is a real head scratcher.

Any ideas?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Get Velocity 2d - Not retrieving values
« Reply #1 on: March 17, 2022, 05:03:51 PM »
Hi.
How are you moving the player?

Ravencroft

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Get Velocity 2d - Not retrieving values
« Reply #2 on: March 17, 2022, 05:39:02 PM »
Hi, Thanks for the response. Moving the player with Set Velocity 2d.

I'm building a movement system similar to Celeste's and setting up my debug ui to show me all the information I need to tune it. Any help would be appreciated.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Get Velocity 2d - Not retrieving values
« Reply #3 on: March 19, 2022, 02:35:47 PM »
hi.
strange indeed,

try on a new scene make a capsule or cube or something, then use a set velocity and a get velocity every frame.
also use a ui text to display on screen. it should work

Ravencroft

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Get Velocity 2d - Not retrieving values
« Reply #4 on: March 21, 2022, 08:30:10 AM »
Tried out a new scene and rebuilt it all from scratch and still get doesn't work. I'm upgraded project to Unity 2020.3.31f1 in case it was a version issue and that hasn't helped either.

This really confuses me.

Edit:
Completely new 2d project. Unity 2020.3.31f1
Latest Playmaker
2dcapsule with 2d rigid body and 2d collider
2d terrain with 2d box collider
One FSM on capsule which get's horizontal axis and sets velocity 2d based on it
Second FSM on capsule with get velocity 2d.

Still doesn't work. I am on the discord under Ravencroft and can happily stream the worksflow.
« Last Edit: March 21, 2022, 10:03:54 AM by Ravencroft »

Ravencroft

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Get Velocity 2d - Not retrieving values
« Reply #5 on: March 24, 2022, 06:06:21 AM »
Spoke to some people in help on discord and they too confirmed the action is currently broken.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Get Velocity 2d - Not retrieving values
« Reply #6 on: March 24, 2022, 11:28:12 AM »
Hi.
I will ping Alex.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4145
  • Official Playmaker Support
    • LinkedIn
Re: Get Velocity 2d - Not retrieving values
« Reply #7 on: March 24, 2022, 12:14:23 PM »
Sorry about that - those actions were changed in 1.9.4 to work in FixedUpdate but they don't properly flag their usage of FixedUpdate. So if no other actions were using FixedUpdate in the FSM they wouldn't work. I assume that's what's going on in your case!

I've attached fixed versions if you want to give them a try. Let me know, and I'll get them into the next update.

Ravencroft

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Get Velocity 2d - Not retrieving values
« Reply #8 on: March 25, 2022, 03:55:32 AM »
I was able to test it and it works great. Thanks!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4145
  • Official Playmaker Support
    • LinkedIn
Re: Get Velocity 2d - Not retrieving values
« Reply #9 on: March 26, 2022, 12:19:17 AM »
Great! Thanks for letting me know.