Hi, I’m using the third person template. I have turned down ground friction so the character sides, but I don’t want it to slide sideways.
Is there any way to get sideways velocity as a float so I can plug it into Add Force like this:
Thanks!
Hi, I’m using the third person template. I have turned down ground friction so the character sides, but I don’t want it to slide sideways.
Is there any way to get sideways velocity as a float so I can plug it into Add Force like this:
Thanks!
Here’s how you get it, I don’t know if you consider X or Y to be “sideways” but one of the pins should work for you.
Hi, Furroy. Thanks for your help. I think that gets world velocity, rather than local velocity. So X returns a value if I run N/S and Y returns E/W, instead of sideways drift.
You get the right vector and the velocity vector of the actor then calculate their dot product. It would give you the sideways velocity with positive values indicating speed to right and negatives indicating speed to left.
Yes! Thank you, that works great!
For anyone curious, this is for an in-line skating setup, but I’m sure it could be useful for something else:
MyCharacter blueprint:
Character Defaults:
Thank You!! Literally NO ONE anywhere could answer this simple question except you!