18{
19
20 GetCapsuleComponent()->InitCapsuleSize(42.f, 96.0f);
21
22
23 bUseControllerRotationPitch = false;
24 bUseControllerRotationYaw = false;
25 bUseControllerRotationRoll = false;
26
27
28 GetCharacterMovement()->bOrientRotationToMovement = true;
29 GetCharacterMovement()->RotationRate = FRotator(0.0f, 500.0f, 0.0f);
30
31
32
33 GetCharacterMovement()->JumpZVelocity = 700.f;
34 GetCharacterMovement()->AirControl = 0.35f;
35 GetCharacterMovement()->MaxWalkSpeed = 500.f;
36 GetCharacterMovement()->MinAnalogWalkSpeed = 20.f;
37 GetCharacterMovement()->BrakingDecelerationWalking = 2000.f;
38
39
40 CameraBoom = CreateDefaultSubobject<USpringArmComponent>(TEXT(
"CameraBoom"));
44
45
46 FollowCamera = CreateDefaultSubobject<UCameraComponent>(TEXT(
"FollowCamera"));
49
50
51
52}
class USpringArmComponent * CameraBoom
Definition TP_ThirdPersonCharacter.h:18
class UCameraComponent * FollowCamera
Definition TP_ThirdPersonCharacter.h:22