Overeptic
(Overeptic)
June 24, 2017, 2:48am
1
So I have this issue where my character would slow down and eventually stop when i reach the bottom or top of my POV. Below is the code I used for making my character move forward. Thanks for your help
void ASurvivalCharacter::MoveForward(float Value)
{
FVector Direction = FRotationMatrix(Controller-
>GetControlRotation()).GetScaledAxis(EAxis::X);
AddMovementInput(Direction, Value);
}
Ninjin
(Ninjin)
June 24, 2017, 3:03am
2
What exactly are you trying and why is
AddMovementInput(GetActorForwardVector(), Value);
not enough? <3
Overeptic
(Overeptic)
June 24, 2017, 3:11am
3
Thanks, it works. And to be honest, I dont know what im doing, I am following a tutorial on the Epic wiki and it says to do what i did. Thanks again
Ninjin
(Ninjin)
June 24, 2017, 3:15am
4
Can you maybe link the tutorial?
Overeptic
(Overeptic)
June 24, 2017, 3:16am
5