25 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
26 bool bUpdateInCharacterMovement;
30 void UpdateTracking(
float DeltaTime);
32 virtual
void OnAttachmentChanged() override;
34 virtual
void TickComponent(
float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override;
43 FTransform LastRelativePosition;
44 bool bHadValidFirstVelocity;
47 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|ComponentVelocity")
48 bool bSampleVelocityInWorldSpace;
51 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera")
52 bool bSetPositionDuringTick;
55 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera")
59 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
63 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bScaleTracking"))
64 FVector TrackingScaler;
67 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
71 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.0", UIMin = "0.0", EditCondition = "bLimitMinHeight"))
72 float MinimumHeightAllowed;
75 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
79 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight"))
80 float MaxHeightAllowed;
83 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
87 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight"))
88 float MaximumTrackedBounds;
91 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
92 uint32 bAutoSetLockToHmd : 1;
94 void ApplyTrackingParameters(FVector& OriginalPosition);
95 bool HasTrackingParameters();
98 virtual
void GetCameraView(
float DeltaTime, FMinimalViewInfo& DesiredView) override;
100 UPROPERTY(EditDefaultsOnly, ReplicatedUsing = OnRep_ReplicatedCameraTransform, Category = "ReplicatedCamera|Networking")
105 FVector LastUpdatesRelativePosition;
106 FRotator LastUpdatesRelativeRotation;
108 bool bLerpingPosition;
112 void RunNetworkedSmoothing(
float DeltaTime);
115 UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking")
116 bool bSmoothReplicatedMotion;
119 UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bSmoothReplicatedMotion"))
120 bool bUseExponentialSmoothing = true;
123 UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
124 float InterpolationSpeed = 50.0f;
127 UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
128 float NetworkMaxSmoothUpdateDistance = 50.f;
131 UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
132 float NetworkNoSmoothUpdateDistance = 100.f;
135 virtual
void OnRep_ReplicatedCameraTransform();
138 UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking")
142 float NetUpdateCount;
145 UFUNCTION(Unreliable, Server, WithValidation)
150 VRBaseCharTransformRPC_Pointer OverrideSendTransform;
153 inline
bool IsLocallyControlled()
const
156 const AActor* MyOwner = GetOwner();
157 return MyOwner->HasLocalNetOwner();