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

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

#include <VRRootComponent.h>

Inheritance diagram for UVRRootComponent:
[legend]

Public Member Functions

 UVRRootComponent (const FObjectInitializer &ObjectInitializer)
 
bool AreWeOverlappingVolume (APhysicsVolume *V)
 
void BeginPlay () override
 
virtual FBoxSphereBounds CalcBounds (const FTransform &LocalToWorld) const override
 
FPrimitiveSceneProxyCreateSceneProxy () override
 
FORCEINLINE void GenerateOffsetToWorld (bool bUpdateBounds=true, bool bGetPureYaw=true)
 
virtual void GetNavigationData (FNavigationRelevantData &Data) const override
 
virtual void InitializeComponent () override
 
bool IsLocallyControlled () const
 
void OnUpdateTransform_Public (EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport=ETeleportType::None)
 
void SetCapsuleHalfHeightVR (float HalfHeight, bool bUpdateOverlaps=true)
 UFUNCTION(BlueprintCallable, Category = "Components|Capsule")
 
virtual void SetCapsuleSizeVR (float NewRadius, float NewHalfHeight, bool bUpdateOverlaps=true)
 UFUNCTION(BlueprintCallable, Category = "Components|Capsule")
 
virtual void SetSimulatePhysics (bool bSimulate) override
 
virtual void SetTrackedParent (UPrimitiveComponent *NewParentComponent, float WaistRadius, EBPVRWaistTrackingMode WaistTrackingMode) override
 UFUNCTION(BlueprintCallable, Category = "VRTrackedParentInterface")
 
void SetTrackingPaused (bool bPaused)
 UFUNCTION(BlueprintCallable, Category = "VRExpansionLibrary")
 
void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 
virtual void UpdatePhysicsVolume (bool bTriggerNotifiers) override
 

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

bool bAllowSimulatingCollision
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bCalledUpdateTransform
 
bool bCenterCapsuleOnHMD
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bHadRelativeMovement
 UPROPERTY(BlueprintReadOnly, Category = "VRExpansionLibrary")
 
bool bPauseTracking
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bUseWalkingCollisionOverride
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
FVector curCameraLoc
 
FRotator curCameraRot
 
FVector DifferenceFromLastFrame
 
FVector lastCameraLoc
 
FRotator lastCameraRot
 
FTransform OffsetComponentToWorld
 
FBPVRWaistTracking_Info OptionalWaistTrackingParent
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRTrackedParentInterface")
 
AVRBaseCharacterowningVRChar
 
FRotator StoredCameraRotOffset
 
USceneComponentTargetPrimitiveComponent
 UPROPERTY(BlueprintReadWrite, Transient, Category = "VRExpansionLibrary")
 
FVector VRCapsuleOffset
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
TEnumAsByte< ECollisionChannel > WalkingCollisionOverride
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 

Protected Member Functions

template<typename AllocatorType >
bool ConvertRotationOverlapsToCurrentOverlaps (TArray< FOverlapInfo, AllocatorType > &OutOverlapsAtEndLocation, const TOverlapArrayView &CurrentOverlaps)
 
template<typename AllocatorType >
bool ConvertSweptOverlapsToCurrentOverlaps (TArray< FOverlapInfo, AllocatorType > &OutOverlapsAtEndLocation, const TOverlapArrayView &SweptOverlaps, int32 SweptOverlapsIndex, const FVector &EndLocation, const FQuat &EndRotationQuat)
 
template<typename AllocatorType >
bool GetOverlapsWithActor_Template (const AActor *Actor, TArray< FOverlapInfo, AllocatorType > &OutOverlaps) const
 
virtual bool MoveComponentImpl (const FVector &Delta, const FQuat &NewRotation, bool bSweep, FHitResult *OutHit=NULL, EMoveComponentFlags MoveFlags=MOVECOMP_NoFlags, ETeleportType Teleport=ETeleportType::None) override
 
virtual void OnUpdateTransform (EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport=ETeleportType::None) override
 
void SendPhysicsTransform (ETeleportType Teleport)
 
virtual bool UpdateOverlapsImpl (const TOverlapArrayView *NewPendingOverlaps=nullptr, bool bDoNotifies=true, const TOverlapArrayView *OverlapsAtEndLocation=nullptr) override
 

Private Member Functions

 GENERATED_BODY ()
 
 GENERATED_IINTERFACE_BODY ()
 

Friends

class FDrawCylinderSceneProxy
 
class FVRCharacterScopedMovementUpdate
 

Detailed Description

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

A capsule component that repositions its physics scene and rendering location to the camera/HMD's relative position. Generally not to be used by itself unless on a base Pawn and not a character, the VRCharacter has been highly customized to correctly support it.

Definition at line 32 of file VRRootComponent.h.

Constructor & Destructor Documentation

◆ UVRRootComponent()

UVRRootComponent::UVRRootComponent ( const FObjectInitializer & ObjectInitializer)

Definition at line 342 of file VRRootComponent.cpp.

Member Function Documentation

◆ AreWeOverlappingVolume()

bool UVRRootComponent::AreWeOverlappingVolume ( APhysicsVolume * V)
inline

Definition at line 224 of file VRRootComponent.h.

Here is the caller graph for this function:

◆ BeginPlay()

void UVRRootComponent::BeginPlay ( )
override

Definition at line 501 of file VRRootComponent.cpp.

◆ CalcBounds()

FBoxSphereBounds UVRRootComponent::CalcBounds ( const FTransform & LocalToWorld) const
overridevirtual

Definition at line 852 of file VRRootComponent.cpp.

◆ ConvertRotationOverlapsToCurrentOverlaps()

template<typename AllocatorType >
bool UVRRootComponent::ConvertRotationOverlapsToCurrentOverlaps ( TArray< FOverlapInfo, AllocatorType > & OutOverlapsAtEndLocation,
const TOverlapArrayView & CurrentOverlaps )
protected

Convert a set of overlaps from a symmetric change in rotation to a subset that includes only those at the end location (filling in OverlapsAtEndLocation).

Definition at line 1598 of file VRRootComponent.cpp.

Here is the call graph for this function:

◆ ConvertSweptOverlapsToCurrentOverlaps()

template<typename AllocatorType >
bool UVRRootComponent::ConvertSweptOverlapsToCurrentOverlaps ( TArray< FOverlapInfo, AllocatorType > & OutOverlapsAtEndLocation,
const TOverlapArrayView & SweptOverlaps,
int32 SweptOverlapsIndex,
const FVector & EndLocation,
const FQuat & EndRotationQuat )
protected

Convert a set of overlaps from a sweep to a subset that includes only those at the end location (filling in OverlapsAtEndLocation).

Definition at line 1494 of file VRRootComponent.cpp.

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

◆ CreateSceneProxy()

FPrimitiveSceneProxy * UVRRootComponent::CreateSceneProxy ( )
override

Definition at line 489 of file VRRootComponent.cpp.

◆ 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:

◆ GENERATED_BODY()

UVRRootComponent::GENERATED_BODY ( )
private

◆ GENERATED_IINTERFACE_BODY()

IVRTrackedParentInterface::GENERATED_IINTERFACE_BODY ( )
privateinherited

◆ GenerateOffsetToWorld()

void UVRRootComponent::GenerateOffsetToWorld ( bool bUpdateBounds = true,
bool bGetPureYaw = true )
inline

Definition at line 266 of file VRRootComponent.h.

Here is the caller graph for this function:

◆ GetNavigationData()

void UVRRootComponent::GetNavigationData ( FNavigationRelevantData & Data) const
overridevirtual

Definition at line 865 of file VRRootComponent.cpp.

◆ GetOverlapsWithActor_Template()

template<typename AllocatorType >
bool UVRRootComponent::GetOverlapsWithActor_Template ( const AActor * Actor,
TArray< FOverlapInfo, AllocatorType > & OutOverlaps ) const
protected

Definition at line 1579 of file VRRootComponent.cpp.

Here is the caller graph for this function:

◆ InitializeComponent()

void UVRRootComponent::InitializeComponent ( )
overridevirtual

Definition at line 495 of file VRRootComponent.cpp.

Here is the call graph for this function:

◆ IsLocallyControlled()

bool UVRRootComponent::IsLocallyControlled ( ) const

Definition at line 1623 of file VRRootComponent.cpp.

Here is the caller graph for this function:

◆ MoveComponentImpl()

bool UVRRootComponent::MoveComponentImpl ( const FVector & Delta,
const FQuat & NewRotation,
bool bSweep,
FHitResult * OutHit = NULL,
EMoveComponentFlags MoveFlags = MOVECOMP_NoFlags,
ETeleportType Teleport = ETeleportType::None )
overrideprotectedvirtual

Definition at line 956 of file VRRootComponent.cpp.

Here is the call graph for this function:

◆ OnUpdateTransform()

void UVRRootComponent::OnUpdateTransform ( EUpdateTransformFlags UpdateTransformFlags,
ETeleportType Teleport = ETeleportType::None )
overrideprotectedvirtual

Definition at line 784 of file VRRootComponent.cpp.

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

◆ OnUpdateTransform_Public()

void UVRRootComponent::OnUpdateTransform_Public ( EUpdateTransformFlags UpdateTransformFlags,
ETeleportType Teleport = ETeleportType::None )
inline

Definition at line 81 of file VRRootComponent.h.

◆ SendPhysicsTransform()

void UVRRootComponent::SendPhysicsTransform ( ETeleportType Teleport)
protected

Definition at line 755 of file VRRootComponent.cpp.

Here is the caller graph for this function:

◆ SetCapsuleHalfHeightVR()

FORCEINLINE void UVRRootComponent::SetCapsuleHalfHeightVR ( float HalfHeight,
bool bUpdateOverlaps = true )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "Components|Capsule")

Definition at line 294 of file VRRootComponent.h.

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

◆ SetCapsuleSizeVR()

FORCEINLINE void UVRRootComponent::SetCapsuleSizeVR ( float NewRadius,
float NewHalfHeight,
bool bUpdateOverlaps = true )
virtualBlueprintCallable

UFUNCTION(BlueprintCallable, Category = "Components|Capsule")

This is overidden for the VR Character to re-set physics location Change the capsule size. This is the unscaled size, before component scale is applied.

Parameters
InRadius: radius of end-cap hemispheres and center cylinder.
InHalfHeight: half-height, from capsule center to end of top or bottom hemisphere.
bUpdateOverlapsif true and this shape is registered and collides, updates touching array for owner actor.

Definition at line 306 of file VRRootComponent.h.

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

◆ SetSimulatePhysics()

void UVRRootComponent::SetSimulatePhysics ( bool bSimulate)
overridevirtual

Definition at line 761 of file VRRootComponent.cpp.

◆ SetTrackedParent()

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

UFUNCTION(BlueprintCallable, Category = "VRTrackedParentInterface")

Reimplemented from IVRTrackedParentInterface.

Definition at line 56 of file VRRootComponent.h.

Here is the call graph for this function:

◆ SetTrackingPaused()

void UVRRootComponent::SetTrackingPaused ( bool bPaused)
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VRExpansionLibrary")

Definition at line 532 of file VRRootComponent.cpp.

◆ TickComponent()

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

Definition at line 537 of file VRRootComponent.cpp.

Here is the call graph for this function:

◆ UpdateOverlapsImpl()

bool UVRRootComponent::UpdateOverlapsImpl ( const TOverlapArrayView * NewPendingOverlaps = nullptr,
bool bDoNotifies = true,
const TOverlapArrayView * OverlapsAtEndLocation = nullptr )
overrideprotectedvirtual

Definition at line 1266 of file VRRootComponent.cpp.

Here is the call graph for this function:

◆ UpdatePhysicsVolume()

void UVRRootComponent::UpdatePhysicsVolume ( bool bTriggerNotifiers)
overridevirtual

Definition at line 1632 of file VRRootComponent.cpp.

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

Friends And Related Symbol Documentation

◆ FDrawCylinderSceneProxy

friend class FDrawCylinderSceneProxy
friend

Definition at line 39 of file VRRootComponent.h.

◆ FVRCharacterScopedMovementUpdate

friend class FVRCharacterScopedMovementUpdate
friend

Definition at line 261 of file VRRootComponent.h.

Member Data Documentation

◆ bAllowSimulatingCollision

bool UVRRootComponent::bAllowSimulatingCollision
BlueprintReadWriteEditAnywhere

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

Definition at line 181 of file VRRootComponent.h.

◆ bCalledUpdateTransform

bool UVRRootComponent::bCalledUpdateTransform

Definition at line 41 of file VRRootComponent.h.

◆ bCenterCapsuleOnHMD

bool UVRRootComponent::bCenterCapsuleOnHMD
BlueprintReadWriteEditAnywhere

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

Definition at line 173 of file VRRootComponent.h.

◆ bHadRelativeMovement

bool UVRRootComponent::bHadRelativeMovement
BlueprintReadOnly

UPROPERTY(BlueprintReadOnly, Category = "VRExpansionLibrary")

Definition at line 217 of file VRRootComponent.h.

◆ bPauseTracking

bool UVRRootComponent::bPauseTracking
BlueprintReadWriteEditAnywhere

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

Definition at line 150 of file VRRootComponent.h.

◆ bUseWalkingCollisionOverride

bool UVRRootComponent::bUseWalkingCollisionOverride
BlueprintReadWriteEditAnywhere

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

Definition at line 188 of file VRRootComponent.h.

◆ curCameraLoc

FVector UVRRootComponent::curCameraLoc

Definition at line 205 of file VRRootComponent.h.

◆ curCameraRot

FRotator UVRRootComponent::curCameraRot

Definition at line 206 of file VRRootComponent.h.

◆ DifferenceFromLastFrame

FVector UVRRootComponent::DifferenceFromLastFrame

Definition at line 131 of file VRRootComponent.h.

◆ lastCameraLoc

FVector UVRRootComponent::lastCameraLoc

Definition at line 209 of file VRRootComponent.h.

◆ lastCameraRot

FRotator UVRRootComponent::lastCameraRot

Definition at line 210 of file VRRootComponent.h.

◆ OffsetComponentToWorld

FTransform UVRRootComponent::OffsetComponentToWorld

Definition at line 133 of file VRRootComponent.h.

◆ OptionalWaistTrackingParent

FBPVRWaistTracking_Info UVRRootComponent::OptionalWaistTrackingParent
BlueprintReadWriteEditAnywhere

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

Definition at line 54 of file VRRootComponent.h.

◆ owningVRChar

AVRBaseCharacter* UVRRootComponent::owningVRChar

Definition at line 126 of file VRRootComponent.h.

◆ StoredCameraRotOffset

FRotator UVRRootComponent::StoredCameraRotOffset

Definition at line 207 of file VRRootComponent.h.

◆ TargetPrimitiveComponent

USceneComponent* UVRRootComponent::TargetPrimitiveComponent
TransientBlueprintReadWrite

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

Definition at line 123 of file VRRootComponent.h.

◆ VRCapsuleOffset

FVector UVRRootComponent::VRCapsuleOffset
BlueprintReadWriteEditAnywhere

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

Definition at line 142 of file VRRootComponent.h.

◆ WalkingCollisionOverride

TEnumAsByte<ECollisionChannel> UVRRootComponent::WalkingCollisionOverride
BlueprintReadWriteEditAnywhere

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

Definition at line 195 of file VRRootComponent.h.


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