A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
UParentRelativeAttachmentComponent Class ReferenceBlueprintable

UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary) More...

#include <ParentRelativeAttachmentComponent.h>

Inheritance diagram for UParentRelativeAttachmentComponent:
[legend]

Public Member Functions

 UParentRelativeAttachmentComponent (const FObjectInitializer &ObjectInitializer)
 
void ClampHeadRotationDelta (float &TargetRotation, FRotator HMDRotation)
 
void DetectHandsBehindHead (float &TargetRot, FRotator HMDRotation)
 
FQuat GetCalculatedRotation (FRotator InverseRot, float DeltaTime)
 
void GetEstShoulderRotation (FRotator &InputHMDRotation, FVector &InputHMDLocation)
 
virtual void InitializeComponent () override
 
bool IsLocallyControlled () const
 
virtual void OnAttachmentChanged () override
 
void RunSampling (FRotator &HMDRotation, FVector &HMDLocation)
 
void SetRelativeRotAndLoc (FVector NewRelativeLocation, FRotator NewRelativeRotation, float DeltaTime)
 
virtual void SetTrackedParent (UPrimitiveComponent *NewParentComponent, float WaistRadius, EBPVRWaistTrackingMode WaistTrackingMode) override
 UFUNCTION(BlueprintCallable, Category = "VRTrackedParentInterface")
 
void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 
void UpdateTracking (float DeltaTime)
 

Static Public Member Functions

static FTransform Default_GetWaistOrientationAndPosition (FBPVRWaistTracking_Info &WaistTrackingInfo)
 
static void Default_SetTrackedParent_Impl (UPrimitiveComponent *NewParentComponent, float WaistRadius, EBPVRWaistTrackingMode WaistTrackingMode, FBPVRWaistTracking_Info &OptionalWaistTrackingParent, USceneComponent *Self)
 

Public Attributes

TWeakObjectPtr< AVRBaseCharacterAttachBaseChar
 UPROPERTY()
 
TWeakObjectPtr< AVRCharacterAttachChar
 UPROPERTY()
 
bool bIgnoreRotationFromParent
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bLerpTransition
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bOffsetByHMD
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bUpdateInCharacterMovement
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bUseFeetLocation
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bWasSetOnce
 
FVector CustomOffset
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
float LastLerpVal
 
float LastRot
 
FTransform LeftControllerTrans
 
float LerpSpeed
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary", meta = (ClampMin = "0", UIMin = "0"))
 
float LerpTarget
 
FBPVRWaistTracking_Info OptionalWaistTrackingParent
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRTrackedParentInterface")
 
FTransform RightControllerTrans
 
float YawTolerance
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary", meta = (ClampMin = "0", UIMin = "0"))
 

Private Member Functions

 GENERATED_BODY ()
 
 GENERATED_IINTERFACE_BODY ()
 

Detailed Description

UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary)

A component that will track the HMD/Cameras location and YAW rotation to allow for chest/waist attachements. This is intended to be parented to the root component of a pawn, it will then either find and track the camera or use the HMD's position if one is connected. This allows it to work in multiplayer since the camera will have its position replicated.

Definition at line 44 of file ParentRelativeAttachmentComponent.h.

Constructor & Destructor Documentation

◆ UParentRelativeAttachmentComponent()

UParentRelativeAttachmentComponent::UParentRelativeAttachmentComponent ( const FObjectInitializer & ObjectInitializer)

Definition at line 11 of file ParentRelativeAttachmentComponent.cpp.

Member Function Documentation

◆ ClampHeadRotationDelta()

void UParentRelativeAttachmentComponent::ClampHeadRotationDelta ( float & TargetRotation,
FRotator HMDRotation )
inline

Definition at line 385 of file ParentRelativeAttachmentComponent.h.

◆ Default_GetWaistOrientationAndPosition()

static FTransform IVRTrackedParentInterface::Default_GetWaistOrientationAndPosition ( FBPVRWaistTracking_Info & WaistTrackingInfo)
inlinestaticinherited

Definition at line 72 of file VRTrackedParentInterface.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Default_SetTrackedParent_Impl()

static void IVRTrackedParentInterface::Default_SetTrackedParent_Impl ( UPrimitiveComponent * NewParentComponent,
float WaistRadius,
EBPVRWaistTrackingMode WaistTrackingMode,
FBPVRWaistTracking_Info & OptionalWaistTrackingParent,
USceneComponent * Self )
inlinestaticinherited

Definition at line 37 of file VRTrackedParentInterface.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DetectHandsBehindHead()

void UParentRelativeAttachmentComponent::DetectHandsBehindHead ( float & TargetRot,
FRotator HMDRotation )
inline

Definition at line 349 of file ParentRelativeAttachmentComponent.h.

◆ GENERATED_BODY()

UParentRelativeAttachmentComponent::GENERATED_BODY ( )
private

◆ GENERATED_IINTERFACE_BODY()

IVRTrackedParentInterface::GENERATED_IINTERFACE_BODY ( )
privateinherited

◆ GetCalculatedRotation()

FQuat UParentRelativeAttachmentComponent::GetCalculatedRotation ( FRotator InverseRot,
float DeltaTime )
inline

Definition at line 198 of file ParentRelativeAttachmentComponent.h.

Here is the caller graph for this function:

◆ GetEstShoulderRotation()

void UParentRelativeAttachmentComponent::GetEstShoulderRotation ( FRotator & InputHMDRotation,
FVector & InputHMDLocation )
inline

Definition at line 269 of file ParentRelativeAttachmentComponent.h.

◆ InitializeComponent()

void UParentRelativeAttachmentComponent::InitializeComponent ( )
overridevirtual

Definition at line 44 of file ParentRelativeAttachmentComponent.cpp.

◆ IsLocallyControlled()

bool UParentRelativeAttachmentComponent::IsLocallyControlled ( ) const
inline

Definition at line 153 of file ParentRelativeAttachmentComponent.h.

Here is the caller graph for this function:

◆ OnAttachmentChanged()

void UParentRelativeAttachmentComponent::OnAttachmentChanged ( )
overridevirtual

Definition at line 56 of file ParentRelativeAttachmentComponent.cpp.

◆ RunSampling()

void UParentRelativeAttachmentComponent::RunSampling ( FRotator & HMDRotation,
FVector & HMDLocation )
inline

Definition at line 245 of file ParentRelativeAttachmentComponent.h.

◆ SetRelativeRotAndLoc()

void UParentRelativeAttachmentComponent::SetRelativeRotAndLoc ( FVector NewRelativeLocation,
FRotator NewRelativeRotation,
float DeltaTime )
inline

Definition at line 163 of file ParentRelativeAttachmentComponent.h.

Here is the caller graph for this function:

◆ SetTrackedParent()

virtual void UParentRelativeAttachmentComponent::SetTrackedParent ( UPrimitiveComponent * NewParentComponent,
float WaistRadius,
EBPVRWaistTrackingMode WaistTrackingMode )
inlineoverridevirtual

UFUNCTION(BlueprintCallable, Category = "VRTrackedParentInterface")

Reimplemented from IVRTrackedParentInterface.

Definition at line 134 of file ParentRelativeAttachmentComponent.h.

Here is the call graph for this function:

◆ TickComponent()

void UParentRelativeAttachmentComponent::TickComponent ( float DeltaTime,
enum ELevelTick TickType,
FActorComponentTickFunction * ThisTickFunction )
override

Definition at line 155 of file ParentRelativeAttachmentComponent.cpp.

Here is the call graph for this function:

◆ UpdateTracking()

void UParentRelativeAttachmentComponent::UpdateTracking ( float DeltaTime)

Definition at line 79 of file ParentRelativeAttachmentComponent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ AttachBaseChar

TWeakObjectPtr<AVRBaseCharacter> UParentRelativeAttachmentComponent::AttachBaseChar

UPROPERTY()

Definition at line 146 of file ParentRelativeAttachmentComponent.h.

◆ AttachChar

TWeakObjectPtr<AVRCharacter> UParentRelativeAttachmentComponent::AttachChar

UPROPERTY()

Definition at line 142 of file ParentRelativeAttachmentComponent.h.

◆ bIgnoreRotationFromParent

bool UParentRelativeAttachmentComponent::bIgnoreRotationFromParent
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")

Definition at line 116 of file ParentRelativeAttachmentComponent.h.

◆ bLerpTransition

bool UParentRelativeAttachmentComponent::bLerpTransition
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")

Definition at line 76 of file ParentRelativeAttachmentComponent.h.

◆ bOffsetByHMD

bool UParentRelativeAttachmentComponent::bOffsetByHMD
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")

Definition at line 108 of file ParentRelativeAttachmentComponent.h.

◆ bUpdateInCharacterMovement

bool UParentRelativeAttachmentComponent::bUpdateInCharacterMovement
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")

Definition at line 124 of file ParentRelativeAttachmentComponent.h.

◆ bUseFeetLocation

bool UParentRelativeAttachmentComponent::bUseFeetLocation
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")

Definition at line 91 of file ParentRelativeAttachmentComponent.h.

◆ bWasSetOnce

bool UParentRelativeAttachmentComponent::bWasSetOnce

Definition at line 81 of file ParentRelativeAttachmentComponent.h.

◆ CustomOffset

FVector UParentRelativeAttachmentComponent::CustomOffset
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")

Definition at line 100 of file ParentRelativeAttachmentComponent.h.

◆ LastLerpVal

float UParentRelativeAttachmentComponent::LastLerpVal

Definition at line 79 of file ParentRelativeAttachmentComponent.h.

◆ LastRot

float UParentRelativeAttachmentComponent::LastRot

Definition at line 78 of file ParentRelativeAttachmentComponent.h.

◆ LeftControllerTrans

FTransform UParentRelativeAttachmentComponent::LeftControllerTrans

Definition at line 82 of file ParentRelativeAttachmentComponent.h.

◆ LerpSpeed

float UParentRelativeAttachmentComponent::LerpSpeed
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary", meta = (ClampMin = "0", UIMin = "0"))

Definition at line 69 of file ParentRelativeAttachmentComponent.h.

◆ LerpTarget

float UParentRelativeAttachmentComponent::LerpTarget

Definition at line 80 of file ParentRelativeAttachmentComponent.h.

◆ OptionalWaistTrackingParent

FBPVRWaistTracking_Info UParentRelativeAttachmentComponent::OptionalWaistTrackingParent
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRTrackedParentInterface")

Definition at line 132 of file ParentRelativeAttachmentComponent.h.

◆ RightControllerTrans

FTransform UParentRelativeAttachmentComponent::RightControllerTrans

Definition at line 83 of file ParentRelativeAttachmentComponent.h.

◆ YawTolerance

float UParentRelativeAttachmentComponent::YawTolerance
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary", meta = (ClampMin = "0", UIMin = "0"))

Definition at line 62 of file ParentRelativeAttachmentComponent.h.


The documentation for this class was generated from the following files: