123456789101112131415161718192021222324252627282930313233343536373839404142 |
- // Fill out your copyright notice in the Description page of Project Settings.
- #include "VRGroupBase.h"
- // Sets default values
- AVRGroupBase::AVRGroupBase(const FObjectInitializer& ObjectInitializer)
- {
- // Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it.
- PrimaryActorTick.bCanEverTick = true;
- ProceduralMesh = CreateDefaultSubobject<UProceduralMeshComponent>(FName(TEXT("ProceduralMesh")));
- RootComponent = ProceduralMesh;
- ThirdPersonCamera = CreateDefaultSubobject<UCameraComponent>(FName(TEXT("ThirdPersonCamera")));
- ThirdPersonCamera->SetupAttachment(ProceduralMesh);
- FloatingPawnMovement = CreateDefaultSubobject<UFloatingPawnMovement>(FName(TEXT("FloatingPawnMovement")));
- FloatingPawnMovement->UpdatedComponent = ProceduralMesh;
- }
- // Called when the game starts or when spawned
- void AVRGroupBase::BeginPlay()
- {
- Super::BeginPlay();
-
- }
- // Called every frame
- void AVRGroupBase::Tick(float DeltaTime)
- {
- Super::Tick(DeltaTime);
- }
- // Called to bind functionality to input
- void AVRGroupBase::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
- {
- Super::SetupPlayerInputComponent(PlayerInputComponent);
- }
|