style: apply clang format
This commit is contained in:
		| @@ -18,34 +18,41 @@ AUTAD_UICharacter::AUTAD_UICharacter() | ||||
|  | ||||
| 	// Don't rotate character to camera direction | ||||
| 	bUseControllerRotationPitch = false; | ||||
| 	bUseControllerRotationYaw = false; | ||||
| 	bUseControllerRotationRoll = false; | ||||
| 	bUseControllerRotationYaw	= false; | ||||
| 	bUseControllerRotationRoll	= false; | ||||
|  | ||||
| 	// Configure character movement | ||||
| 	GetCharacterMovement()->bOrientRotationToMovement = true; // Rotate character to moving direction | ||||
| 	GetCharacterMovement()->RotationRate = FRotator(0.f, 640.f, 0.f); | ||||
| 	GetCharacterMovement()->bConstrainToPlane = true; | ||||
| 	GetCharacterMovement()->bOrientRotationToMovement = | ||||
| 		true; // Rotate character to moving direction | ||||
| 	GetCharacterMovement()->RotationRate		= FRotator(0.f, 640.f, 0.f); | ||||
| 	GetCharacterMovement()->bConstrainToPlane	= true; | ||||
| 	GetCharacterMovement()->bSnapToPlaneAtStart = true; | ||||
|  | ||||
| 	// Create a camera boom... | ||||
| 	CameraBoom = CreateDefaultSubobject<USpringArmComponent>(TEXT("CameraBoom")); | ||||
| 	CameraBoom = | ||||
| 		CreateDefaultSubobject<USpringArmComponent>(TEXT("CameraBoom")); | ||||
| 	CameraBoom->SetupAttachment(RootComponent); | ||||
| 	CameraBoom->SetUsingAbsoluteRotation(true); // Don't want arm to rotate when character does | ||||
| 	CameraBoom->SetUsingAbsoluteRotation( | ||||
| 		true); // Don't want arm to rotate when character does | ||||
| 	CameraBoom->TargetArmLength = 800.f; | ||||
| 	CameraBoom->SetRelativeRotation(FRotator(-60.f, 0.f, 0.f)); | ||||
| 	CameraBoom->bDoCollisionTest = false; // Don't want to pull camera in when it collides with level | ||||
| 	CameraBoom->bDoCollisionTest = | ||||
| 		false; // Don't want to pull camera in when it collides with level | ||||
|  | ||||
| 	// Create a camera... | ||||
| 	TopDownCameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("TopDownCamera")); | ||||
| 	TopDownCameraComponent->SetupAttachment(CameraBoom, USpringArmComponent::SocketName); | ||||
| 	TopDownCameraComponent->bUsePawnControlRotation = false; // Camera does not rotate relative to arm | ||||
| 	TopDownCameraComponent = | ||||
| 		CreateDefaultSubobject<UCameraComponent>(TEXT("TopDownCamera")); | ||||
| 	TopDownCameraComponent->SetupAttachment(CameraBoom, | ||||
| 											USpringArmComponent::SocketName); | ||||
| 	TopDownCameraComponent->bUsePawnControlRotation = | ||||
| 		false; // Camera does not rotate relative to arm | ||||
|  | ||||
| 	// Activate ticking in order to update the cursor every frame. | ||||
| 	PrimaryActorTick.bCanEverTick = true; | ||||
| 	PrimaryActorTick.bCanEverTick		   = true; | ||||
| 	PrimaryActorTick.bStartWithTickEnabled = true; | ||||
| } | ||||
|  | ||||
| void AUTAD_UICharacter::Tick(float DeltaSeconds) | ||||
| { | ||||
|     Super::Tick(DeltaSeconds); | ||||
| 	Super::Tick(DeltaSeconds); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user