Leaning stuff experiment
remember to lean backwards and run jump
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "DDICharacter.h"
|
||||
#include "GameFramework/SpringArmComponent.h"
|
||||
|
||||
// Sets default values
|
||||
ADDICharacter::ADDICharacter()
|
||||
@@ -11,15 +12,8 @@ ADDICharacter::ADDICharacter()
|
||||
bReplicates = true;
|
||||
// bReplicateMovement = true;
|
||||
|
||||
CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent"));
|
||||
CameraComponent->SetupAttachment(GetMesh());
|
||||
CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f));
|
||||
CameraComponent->bUsePawnControlRotation = true;
|
||||
|
||||
/* Was going to add, but showed up as duplicate.
|
||||
//CharacterMeshCompenent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("CharacterMeshComponent"));
|
||||
// CharacterMeshCompenent->SetupAttachment(CameraComponent);
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
// Called when the game starts or when spawned
|
||||
|
||||
Reference in New Issue
Block a user