First person character moves slower when looking down

Liam Macalister
Wed, 02 Sep 2020 21:02:36 +0000
Cinematics & Media

For some reason when i look down with my camera in first person the character moves slower forward and backwards (normal speed when strafing). If i look fully down the player won’t even move forward. Another question thread is based on this but it’s dead with no solution.

From set player input component

//Set up "look" bindings.
	PlayerInputComponent->BindAxis("Turn", this, &APlayerCharacterFPS::AddControllerYawInput);
	PlayerInputComponent->BindAxis("LookUp", this, &APlayerCharacterFPS::AddControllerPitchInput);

...
Move forward method

void APlayerCharacterFPS::MoveForward(float value)
{
	//Find out which way is "forward" and record that the player wants to move that way.
	FVector Direction = FRotationMatrix(Controller->GetControlRotation()).GetScaledAxis(EAxis::X);
	AddMovementInput(Direction, value);
}

4 posts - 3 participants