using the code:
FVector forwardVector = this->GetActorForwardVector();
from this screenshot:
How come the X is -1.000 and Y is -0.004?
should not it be 0,-1?
This is how the character is setup:
using the code:
FVector forwardVector = this->GetActorForwardVector();
from this screenshot:
How come the X is -1.000 and Y is -0.004?
should not it be 0,-1?
This is how the character is setup:
“GetActorForwardVector” is World Rotation based, so as your Actor is 90 or -90° turned he is looking in the world direction X -1.000 and Y -0.004
if you want the local one, well it will always be 1/0/0 so you can use “FVector::ForwardVector”