A Demo Project for the UnrealEngineSDK
|
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary) More...
#include <ReplicatedVRCameraComponent.h>
Public Types | |
typedef void(AVRBaseCharacter::* | VRBaseCharTransformRPC_Pointer) (FBPVRComponentPosRep NewTransform) |
Public Member Functions | |
UReplicatedVRCameraComponent (const FObjectInitializer &ObjectInitializer) | |
void | ApplyTrackingParameters (FVector &OriginalPosition) |
virtual void | GetCameraView (float DeltaTime, FMinimalViewInfo &DesiredView) override |
bool | HasTrackingParameters () |
bool | IsLocallyControlled () const |
virtual void | OnAttachmentChanged () override |
virtual void | OnRep_ReplicatedCameraTransform () |
UFUNCTION() | |
void | RunNetworkedSmoothing (float DeltaTime) |
void | Server_SendCameraTransform (FBPVRComponentPosRep NewTransform) |
UFUNCTION(Unreliable, Server, WithValidation) | |
virtual void | TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override |
void | UpdateTracking (float DeltaTime) |
Public Attributes | |
TWeakObjectPtr< AVRBaseCharacter > | AttachChar |
UPROPERTY() | |
uint32 | bAutoSetLockToHmd: 1 |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking") | |
bool | bHadValidFirstVelocity |
bool | bHasAuthority |
bool | bIsServer |
bool | bLerpingPosition |
bool | bLimitBounds |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking") | |
bool | bLimitMaxHeight |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking") | |
bool | bLimitMinHeight |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking") | |
bool | bOffsetByHMD |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera") | |
bool | bReppedOnce |
bool | bSampleVelocityInWorldSpace |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|ComponentVelocity") | |
bool | bScaleTracking |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking") | |
bool | bSetPositionDuringTick |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera") | |
bool | bSmoothReplicatedMotion |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking") | |
bool | bUpdateInCharacterMovement |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary") | |
bool | bUseExponentialSmoothing = true |
UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bSmoothReplicatedMotion")) | |
float | InterpolationSpeed = 50.0f |
UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing")) | |
FTransform | LastRelativePosition |
FVector | LastUpdatesRelativePosition |
FRotator | LastUpdatesRelativeRotation |
float | MaxHeightAllowed |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight")) | |
float | MaximumTrackedBounds |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight")) | |
float | MinimumHeightAllowed |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.0", UIMin = "0.0", EditCondition = "bLimitMinHeight")) | |
FBPVRComponentPosRep | MotionSampleUpdateBuffer [2] |
float | NetUpdateCount |
float | NetUpdateRate |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking") | |
float | NetworkMaxSmoothUpdateDistance = 50.f |
UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing")) | |
float | NetworkNoSmoothUpdateDistance = 100.f |
UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing")) | |
VRBaseCharTransformRPC_Pointer | OverrideSendTransform |
FBPVRComponentPosRep | ReplicatedCameraTransform |
UPROPERTY(EditDefaultsOnly, ReplicatedUsing = OnRep_ReplicatedCameraTransform, Category = "ReplicatedCamera|Networking") | |
FVector | TrackingScaler |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bScaleTracking")) | |
Private Member Functions | |
GENERATED_BODY () | |
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary)
An overridden camera component that replicates its location in multiplayer
Definition at line 19 of file ReplicatedVRCameraComponent.h.
typedef void(AVRBaseCharacter::* UReplicatedVRCameraComponent::VRBaseCharTransformRPC_Pointer) (FBPVRComponentPosRep NewTransform) |
Definition at line 238 of file ReplicatedVRCameraComponent.h.
UReplicatedVRCameraComponent::UReplicatedVRCameraComponent | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 44 of file ReplicatedVRCameraComponent.cpp.
void UReplicatedVRCameraComponent::ApplyTrackingParameters | ( | FVector & | OriginalPosition | ) |
Definition at line 175 of file ReplicatedVRCameraComponent.cpp.
|
private |
|
overridevirtual |
Definition at line 366 of file ReplicatedVRCameraComponent.cpp.
bool UReplicatedVRCameraComponent::HasTrackingParameters | ( | ) |
Definition at line 170 of file ReplicatedVRCameraComponent.cpp.
|
inline |
Definition at line 242 of file ReplicatedVRCameraComponent.h.
|
overridevirtual |
Definition at line 156 of file ReplicatedVRCameraComponent.cpp.
|
virtual |
UFUNCTION()
Definition at line 468 of file ReplicatedVRCameraComponent.cpp.
void UReplicatedVRCameraComponent::RunNetworkedSmoothing | ( | float | DeltaTime | ) |
Definition at line 245 of file ReplicatedVRCameraComponent.cpp.
|
ServerWithValidationUnreliable |
UFUNCTION(Unreliable, Server, WithValidation)
|
overridevirtual |
Definition at line 307 of file ReplicatedVRCameraComponent.cpp.
void UReplicatedVRCameraComponent::UpdateTracking | ( | float | DeltaTime | ) |
Definition at line 205 of file ReplicatedVRCameraComponent.cpp.
TWeakObjectPtr<AVRBaseCharacter> UReplicatedVRCameraComponent::AttachChar |
UPROPERTY()
Definition at line 38 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
Sets lock to hmd automatically based on if the camera is currently locally controlled or not
Definition at line 149 of file ReplicatedVRCameraComponent.h.
bool UReplicatedVRCameraComponent::bHadValidFirstVelocity |
Definition at line 53 of file ReplicatedVRCameraComponent.h.
bool UReplicatedVRCameraComponent::bHasAuthority |
Whether or not this component has authority within the frame
Definition at line 47 of file ReplicatedVRCameraComponent.h.
bool UReplicatedVRCameraComponent::bIsServer |
Whether or not this component is currently on the network server
Definition at line 50 of file ReplicatedVRCameraComponent.h.
bool UReplicatedVRCameraComponent::bLerpingPosition |
Definition at line 168 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
Definition at line 133 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
Definition at line 117 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
Definition at line 101 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera")
Definition at line 77 of file ReplicatedVRCameraComponent.h.
bool UReplicatedVRCameraComponent::bReppedOnce |
Definition at line 169 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|ComponentVelocity")
Definition at line 61 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
Definition at line 85 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera")
Definition at line 69 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWriteReplicated |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking")
Definition at line 181 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
Definition at line 33 of file ReplicatedVRCameraComponent.h.
|
EditAnywhere |
UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bSmoothReplicatedMotion"))
Definition at line 188 of file ReplicatedVRCameraComponent.h.
|
EditAnywhere |
UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
Definition at line 195 of file ReplicatedVRCameraComponent.h.
FTransform UReplicatedVRCameraComponent::LastRelativePosition |
Definition at line 52 of file ReplicatedVRCameraComponent.h.
FVector UReplicatedVRCameraComponent::LastUpdatesRelativePosition |
Definition at line 165 of file ReplicatedVRCameraComponent.h.
FRotator UReplicatedVRCameraComponent::LastUpdatesRelativeRotation |
Definition at line 166 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight"))
Definition at line 125 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight"))
Definition at line 141 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.0", UIMin = "0.0", EditCondition = "bLimitMinHeight"))
Definition at line 109 of file ReplicatedVRCameraComponent.h.
FBPVRComponentPosRep UReplicatedVRCameraComponent::MotionSampleUpdateBuffer[2] |
Definition at line 163 of file ReplicatedVRCameraComponent.h.
float UReplicatedVRCameraComponent::NetUpdateCount |
Definition at line 226 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWriteReplicated |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking")
Definition at line 223 of file ReplicatedVRCameraComponent.h.
|
EditAnywhere |
UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
Definition at line 202 of file ReplicatedVRCameraComponent.h.
|
EditAnywhere |
UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
Definition at line 209 of file ReplicatedVRCameraComponent.h.
VRBaseCharTransformRPC_Pointer UReplicatedVRCameraComponent::OverrideSendTransform |
Definition at line 239 of file ReplicatedVRCameraComponent.h.
|
EditDefaultsOnly |
UPROPERTY(EditDefaultsOnly, ReplicatedUsing = OnRep_ReplicatedCameraTransform, Category = "ReplicatedCamera|Networking")
Definition at line 161 of file ReplicatedVRCameraComponent.h.
|
EditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bScaleTracking"))
Definition at line 93 of file ReplicatedVRCameraComponent.h.