Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ravencroft 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?
-
Hi.
How are you moving the player?
-
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.
-
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
-
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.
-
Spoke to some people in help on discord and they too confirmed the action is currently broken.
-
Hi.
I will ping Alex.
-
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.
-
I was able to test it and it works great. Thanks!
-
Great! Thanks for letting me know.