Download

My character is slowing down when I move Lef/Right

Heya.

See Video Here - yeet

Im using the character controller. And I cant seem to figure out why he is slowing down. Ive tried all the settings I feel like. I move the character by code -

Forward -


 
           AddMovementInput(GetActorForwardVector(), Value);    

Left/Right


 
          AddMovementInput(GetActorForwardVector(), Value);                      

I’m all out on this one. I’d appreciate any help, thank you!

It’s not really possible to determine what’s going wrong without seeing more code or debug information. Above your AddMovementInput() add:


UE_LOG(LogTemp, Warning, TEXT("Movement value: %f"), Value);

This way you see if your value is not 1 or -1. If Value is any number between then your character will move slower. In that case it would be a problem with your input setup most likely.

On the MoveLeft/Right function change GetActorForwardVector() to GetActorRightVector().