A Demo Project for the UnrealEngineSDK
|
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary) More...
#include <ParentRelativeAttachmentComponent.h>
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< AVRBaseCharacter > | AttachBaseChar |
UPROPERTY() | |
TWeakObjectPtr< AVRCharacter > | AttachChar |
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 () | |
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.
UParentRelativeAttachmentComponent::UParentRelativeAttachmentComponent | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 11 of file ParentRelativeAttachmentComponent.cpp.
|
inline |
Definition at line 385 of file ParentRelativeAttachmentComponent.h.
|
inlinestaticinherited |
Definition at line 72 of file VRTrackedParentInterface.h.
|
inlinestaticinherited |
Definition at line 37 of file VRTrackedParentInterface.h.
|
inline |
Definition at line 349 of file ParentRelativeAttachmentComponent.h.
|
private |
|
privateinherited |
|
inline |
Definition at line 198 of file ParentRelativeAttachmentComponent.h.
|
inline |
Definition at line 269 of file ParentRelativeAttachmentComponent.h.
|
overridevirtual |
Definition at line 44 of file ParentRelativeAttachmentComponent.cpp.
|
inline |
Definition at line 153 of file ParentRelativeAttachmentComponent.h.
|
overridevirtual |
Definition at line 56 of file ParentRelativeAttachmentComponent.cpp.
|
inline |
Definition at line 245 of file ParentRelativeAttachmentComponent.h.
|
inline |
Definition at line 163 of file ParentRelativeAttachmentComponent.h.
|
inlineoverridevirtual |
UFUNCTION(BlueprintCallable, Category = "VRTrackedParentInterface")
Reimplemented from IVRTrackedParentInterface.
Definition at line 134 of file ParentRelativeAttachmentComponent.h.
|
override |
Definition at line 155 of file ParentRelativeAttachmentComponent.cpp.
void UParentRelativeAttachmentComponent::UpdateTracking | ( | float | DeltaTime | ) |
Definition at line 79 of file ParentRelativeAttachmentComponent.cpp.
TWeakObjectPtr<AVRBaseCharacter> UParentRelativeAttachmentComponent::AttachBaseChar |
UPROPERTY()
Definition at line 146 of file ParentRelativeAttachmentComponent.h.
TWeakObjectPtr<AVRCharacter> UParentRelativeAttachmentComponent::AttachChar |
UPROPERTY()
Definition at line 142 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 116 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 76 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 108 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 124 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 91 of file ParentRelativeAttachmentComponent.h.
bool UParentRelativeAttachmentComponent::bWasSetOnce |
Definition at line 81 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 100 of file ParentRelativeAttachmentComponent.h.
float UParentRelativeAttachmentComponent::LastLerpVal |
Definition at line 79 of file ParentRelativeAttachmentComponent.h.
float UParentRelativeAttachmentComponent::LastRot |
Definition at line 78 of file ParentRelativeAttachmentComponent.h.
FTransform UParentRelativeAttachmentComponent::LeftControllerTrans |
Definition at line 82 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary", meta = (ClampMin = "0", UIMin = "0"))
Definition at line 69 of file ParentRelativeAttachmentComponent.h.
float UParentRelativeAttachmentComponent::LerpTarget |
Definition at line 80 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRTrackedParentInterface")
Definition at line 132 of file ParentRelativeAttachmentComponent.h.
FTransform UParentRelativeAttachmentComponent::RightControllerTrans |
Definition at line 83 of file ParentRelativeAttachmentComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary", meta = (ClampMin = "0", UIMin = "0"))
Definition at line 62 of file ParentRelativeAttachmentComponent.h.