A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
VRPlayerStart.cpp
Go to the documentation of this file.
1// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
2
4
5
6AVRPlayerStart::AVRPlayerStart(const FObjectInitializer& ObjectInitializer)
7 : Super(ObjectInitializer)
8{
9 VRRootComp = CreateDefaultSubobject<USceneComponent>(TEXT("VRRootComp"));
10 VRRootComp->Mobility = EComponentMobility::Static;
11 RootComponent = VRRootComp;
12
13 UCapsuleComponent * CapsuleComp = GetCapsuleComponent();
14 if (CapsuleComp && VRRootComp)
15 {
16 CapsuleComp->SetupAttachment(VRRootComp);
17 CapsuleComp->SetRelativeLocation(FVector(0.f,0.f,CapsuleComp->GetScaledCapsuleHalfHeight()));
18 }
19}
class USceneComponent * VRRootComp
UPROPERTY()
AVRPlayerStart(const FObjectInitializer &ObjectInitializer)