diff --git a/Source/PresidentsBrigade/BasePawn.cpp b/Source/PresidentsBrigade/BasePawn.cpp index 26b748b..1658fb4 100755 --- a/Source/PresidentsBrigade/BasePawn.cpp +++ b/Source/PresidentsBrigade/BasePawn.cpp @@ -10,7 +10,7 @@ ABasePawn::ABasePawn(const FObjectInitializer &object_initializer): APawn(object_initializer) { - // Create default components. + // Create default component. root_component = object_initializer.CreateDefaultSubobject(this, FName("Root")); main_camera = object_initializer.CreateDefaultSubobject(this, FName("MainCamera")); player_mesh = object_initializer.CreateDefaultSubobject(this, FName("PlayerMesh")); @@ -29,7 +29,6 @@ ABasePawn::ABasePawn(const FObjectInitializer &object_initializer): void ABasePawn::BeginPlay() { Super::BeginPlay(); - } UPawnMovementComponent* ABasePawn::GetMovementComponent() const @@ -53,6 +52,7 @@ void ABasePawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) void ABasePawn::handle_move_forward(float axis) { + GEngine->AddOnScreenDebug("moving forward"); FRotator rotation = Controller->GetControlRotation(); FRotator yaw(0.0f, rotation.Yaw, 0.0f);