I’m following this tutorial https://docs.unrealengine.com/en-US/…2/3/index.html and I have a problem getting the forward vector (the right vector works great). By getting the scaled X axis of the controller’s rotation I’m supposed to avoid dependency of the other axis value, meaning that if I look up or down, the character will get the same forward and move the same distance over time. That’s the same thing I do with the right vector, and it doesn’t matter where I look to, the movement to the right/left works perfect. But with the forward doesn’t work as intended. The higher I look, the faster I move, and the more down, the slower. I have binded the functions properly, of course. The code this (its almost the same as in the tutorial):
//Get the forward vector
FVector direction = FRotationMatrix(GetControlRotation()).GetScaledAxis(EAxis::X);
//Get the right vector
FVector direction = FRotationMatrix(GetControlRotation()).GetScaledAxis(EAxis::Y);
Any clue what might happen here?