I am trying to understand setting up a side scroller character from scratch by referring to the one prebuilt in unreal. I copied the base setting in the .cpp and .h file exactly. The forward movement is normal but while turning back the character only turns like 15 degrees away from the camera. How is it that the same code that works for the template does not work for my project?
The moving back picture is the MovingHorizontallyback attached below
// Fill out your copyright notice in the Description page of Project Settings.
#include "CharacterSideScroller.h"
// Sets default values
ACharacterSideScroller::ACharacterSideScroller()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
// Makes the Camera rotate the character rather than the controller
bUseControllerRotationPitch = false;
bUseControllerRotationYaw = false;
bUseControllerRotationRoll = false;
//Creating components
CameraBoom = CreateDefaultSubobject<USpringArmComponent>(TEXT("Camera Boom"));
CameraBoom->SetupAttachment(RootComponent);
CameraBoom->SetUsingAbsoluteRotation(true);
CameraBoom->TargetArmLength = 500.0f;
Camera = CreateDefaultSubobject<UCameraComponent>(TEXT("Camera"));
Camera->SetupAttachment(CameraBoom);
Camera->bUsePawnControlRotation = false;
GetCharacterMovement()->bOrientRotationToMovement = true;
GetCharacterMovement()->RotationRate = FRotator(0.0f, 720.0f, 0.0f);
GetCharacterMovement()->GravityScale = 2.f;
GetCharacterMovement()->AirControl = 0.20f;
GetCharacterMovement()->JumpZVelocity = 1000.f;
GetCharacterMovement()->GroundFriction = 3.f;
GetCharacterMovement()->MaxWalkSpeed = 600.f;
GetCharacterMovement()->MaxFlySpeed = 600.f;
}