Debug
This commit is contained in:
parent
0606deaccb
commit
d93d686fac
@ -10,7 +10,7 @@
|
|||||||
ABasePawn::ABasePawn(const FObjectInitializer &object_initializer):
|
ABasePawn::ABasePawn(const FObjectInitializer &object_initializer):
|
||||||
APawn(object_initializer)
|
APawn(object_initializer)
|
||||||
{
|
{
|
||||||
// Create default components.
|
// Create default component.
|
||||||
root_component = object_initializer.CreateDefaultSubobject<USceneComponent>(this, FName("Root"));
|
root_component = object_initializer.CreateDefaultSubobject<USceneComponent>(this, FName("Root"));
|
||||||
main_camera = object_initializer.CreateDefaultSubobject<UCameraComponent>(this, FName("MainCamera"));
|
main_camera = object_initializer.CreateDefaultSubobject<UCameraComponent>(this, FName("MainCamera"));
|
||||||
player_mesh = object_initializer.CreateDefaultSubobject<UStaticMeshComponent>(this, FName("PlayerMesh"));
|
player_mesh = object_initializer.CreateDefaultSubobject<UStaticMeshComponent>(this, FName("PlayerMesh"));
|
||||||
@ -29,7 +29,6 @@ ABasePawn::ABasePawn(const FObjectInitializer &object_initializer):
|
|||||||
void ABasePawn::BeginPlay()
|
void ABasePawn::BeginPlay()
|
||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UPawnMovementComponent* ABasePawn::GetMovementComponent() const
|
UPawnMovementComponent* ABasePawn::GetMovementComponent() const
|
||||||
@ -53,6 +52,7 @@ void ABasePawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
|
|||||||
|
|
||||||
void ABasePawn::handle_move_forward(float axis)
|
void ABasePawn::handle_move_forward(float axis)
|
||||||
{
|
{
|
||||||
|
GEngine->AddOnScreenDebug("moving forward");
|
||||||
FRotator rotation = Controller->GetControlRotation();
|
FRotator rotation = Controller->GetControlRotation();
|
||||||
FRotator yaw(0.0f, rotation.Yaw, 0.0f);
|
FRotator yaw(0.0f, rotation.Yaw, 0.0f);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user