A Demo Project for the UnrealEngineSDK
|
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary) More...
#include <VRRootComponent.h>
Public Member Functions | |
UVRRootComponent (const FObjectInitializer &ObjectInitializer) | |
bool | AreWeOverlappingVolume (APhysicsVolume *V) |
void | BeginPlay () override |
virtual FBoxSphereBounds | CalcBounds (const FTransform &LocalToWorld) const override |
FPrimitiveSceneProxy * | CreateSceneProxy () 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") | |
AVRBaseCharacter * | owningVRChar |
FRotator | StoredCameraRotOffset |
USceneComponent * | TargetPrimitiveComponent |
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 |
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.
UVRRootComponent::UVRRootComponent | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 342 of file VRRootComponent.cpp.
|
inline |
|
override |
Definition at line 501 of file VRRootComponent.cpp.
|
overridevirtual |
Definition at line 852 of file VRRootComponent.cpp.
|
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.
|
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.
|
override |
Definition at line 489 of file VRRootComponent.cpp.
|
inlinestaticinherited |
Definition at line 72 of file VRTrackedParentInterface.h.
|
inlinestaticinherited |
Definition at line 37 of file VRTrackedParentInterface.h.
|
private |
|
privateinherited |
|
overridevirtual |
Definition at line 865 of file VRRootComponent.cpp.
|
overridevirtual |
bool UVRRootComponent::IsLocallyControlled | ( | ) | const |
|
overrideprotectedvirtual |
Definition at line 784 of file VRRootComponent.cpp.
|
inline |
Definition at line 81 of file VRRootComponent.h.
|
protected |
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "Components|Capsule")
Definition at line 294 of file VRRootComponent.h.
|
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.
InRadius | : radius of end-cap hemispheres and center cylinder. |
InHalfHeight | : half-height, from capsule center to end of top or bottom hemisphere. |
bUpdateOverlaps | if true and this shape is registered and collides, updates touching array for owner actor. |
Definition at line 306 of file VRRootComponent.h.
|
overridevirtual |
Definition at line 761 of file VRRootComponent.cpp.
|
inlineoverridevirtual |
UFUNCTION(BlueprintCallable, Category = "VRTrackedParentInterface")
Reimplemented from IVRTrackedParentInterface.
Definition at line 56 of file VRRootComponent.h.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRExpansionLibrary")
Definition at line 532 of file VRRootComponent.cpp.
|
override |
|
overridevirtual |
Definition at line 1632 of file VRRootComponent.cpp.
|
friend |
Definition at line 39 of file VRRootComponent.h.
|
friend |
Definition at line 261 of file VRRootComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 181 of file VRRootComponent.h.
bool UVRRootComponent::bCalledUpdateTransform |
Definition at line 41 of file VRRootComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 173 of file VRRootComponent.h.
|
BlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, Category = "VRExpansionLibrary")
Definition at line 217 of file VRRootComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 150 of file VRRootComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 188 of file VRRootComponent.h.
FVector UVRRootComponent::curCameraLoc |
Definition at line 205 of file VRRootComponent.h.
FRotator UVRRootComponent::curCameraRot |
Definition at line 206 of file VRRootComponent.h.
FVector UVRRootComponent::DifferenceFromLastFrame |
Definition at line 131 of file VRRootComponent.h.
FVector UVRRootComponent::lastCameraLoc |
Definition at line 209 of file VRRootComponent.h.
FRotator UVRRootComponent::lastCameraRot |
Definition at line 210 of file VRRootComponent.h.
FTransform UVRRootComponent::OffsetComponentToWorld |
Definition at line 133 of file VRRootComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRTrackedParentInterface")
Definition at line 54 of file VRRootComponent.h.
AVRBaseCharacter* UVRRootComponent::owningVRChar |
Definition at line 126 of file VRRootComponent.h.
FRotator UVRRootComponent::StoredCameraRotOffset |
Definition at line 207 of file VRRootComponent.h.
|
TransientBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite, Transient, Category = "VRExpansionLibrary")
Definition at line 123 of file VRRootComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 142 of file VRRootComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 195 of file VRRootComponent.h.