Hello,
When I Add Forward Movement Input OnTick, RIght and Up Movement Input don’t work. How I can solve it?
void AHNPlayer::Tick(float DeltaSeconds)
{
Super::Tick(DeltaSeconds);
MoveForward();
}
void AHNPlayer::MoveForward()
{
AddMovementInput(GetActorForwardVector(), GetCharacterMovement()->MaxFlySpeed);
}
void AHNPlayer::MoveRight(const FInputActionValue& Value)
{
const float InputValue = Value.Get<float>();
AddMovementInput(GetActorRightVector(), InputValue);
}
void AHNPlayer::MoveUp(const FInputActionValue& Value)
{
const float InputValue = Value.Get<float>();
AddMovementInput(GetActorUpVector(), InputValue);
}