For my sprint setup, I need to see if the player is moving forward. It needs to be relative to the current direction of the player however. So how would I go about setting this up?
Thanks in advance
For my sprint setup, I need to see if the player is moving forward. It needs to be relative to the current direction of the player however. So how would I go about setting this up?
Thanks in advance
Assuming you using character class, all movment releted stuff is contained in CharacterMovmentComponent which is attached by default to Character actor
I need this X to be relative to the player (It’s where I’m breaking it into a vector). How would I do that.
Ah Than you need to Unrotate the vector from player rotation, this you you will have vector with actual movement location relative to player. Unrotate function is part of vector math, it’s inversion of rotation, i seen it in C++ but i bet it’s also exposed to Blueprint, check he Libery.