45 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"VRMountComponent")
49 virtual
void OnRegister() override;
51 FTransform InitialRelativeTransform;
52 FVector InitialInteractorLocation;
53 FVector InitialInteractorDropLocation;
58 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMountComponent")
62 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMountComponent")
63 float FlipReajustYawSpeed;
65 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "GripSettings")
69 UFUNCTION(BlueprintCallable, Category = "GripSettings")
70 void SetGripPriority(
int NewGripPriority);
74 bool bIsInsideFrontFlipingZone;
75 bool bIsInsideBackFlipZone;
76 FVector CurInterpGripLoc;
79 FVector InitialGripToForwardVec;
80 FVector InitialForwardVector;
83 FVector EntryRightVec;
85 bool bFirstEntryToHalfFlipZone;
86 bool bLerpingOutOfFlipZone;
90 FPlane ForwardPullPlane;
91 FVector LastPointOnForwardPlane;
92 FVector CurPointOnForwardPlane;
101 virtual
void GetOwnedGameplayTags(FGameplayTagContainer& TagContainer)
const override
103 TagContainer = GameplayTags;
107 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category =
"GameplayTags")
108 FGameplayTagContainer GameplayTags;
112 virtual
void PreReplication(IRepChangedPropertyTracker & ChangedPropertyTracker) override;
116 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface")
117 bool bRepGameplayTags;
120 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface|Replication")
121 bool bReplicateMovement;
123 virtual
void TickComponent(
float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override;
124 virtual
void BeginPlay() override;
126 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRGripInterface")
129 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRGripInterface")
132 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRGripInterface")
136 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRGripInterface")
139 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "GripSettings")
140 float PrimarySlotRange;
142 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "GripSettings")
143 float SecondarySlotRange;
146 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRGripInterface", meta = (ScriptName = "IsDenyGripping"))
149 UPROPERTY(BlueprintReadOnly, Category = "VRGripInterface", meta = (ScriptName = "IsCurrentlyHeld"))
152 UPROPERTY(BlueprintReadOnly, Category = "VRGripInterface")
154 bool bOriginalReplicatesMovement;
157 UFUNCTION(BlueprintCallable, Category = "VRMountComponent")
158 void ResetInitialMountLocation()
161 InitialRelativeTransform = this->GetRelativeTransform();
164 virtual void OnUnregister()
override;;
176 bool SimulateOnDrop_Implementation()
override;
191 void GetGripStiffnessAndDamping_Implementation(
float& GripStiffnessOut,
float& GripDampingOut)
override;
197 float GripBreakDistance_Implementation()
override;
200 void ClosestGripSlotInRange_Implementation(FVector WorldLocation,
bool bSecondarySlot,
bool& bHadSlotInRange, FTransform& SlotWorldTransform, FName& SlotName,
UGripMotionControllerComponent* CallingController =
nullptr, FName OverridePrefix = NAME_None)
override;
203 bool AllowsMultipleGrips_Implementation()
override;
206 void IsHeld_Implementation(TArray<FBPGripPair>& CurHoldingControllers,
bool& bCurIsHeld)
override;
215 bool GetGripScripts_Implementation(TArray<UVRGripScriptBase*>& ArrayReference)
override;
244 void OnUsed_Implementation()
override;
247 void OnEndUsed_Implementation()
override;
250 void OnSecondaryUsed_Implementation()
override;
253 void OnEndSecondaryUsed_Implementation()
override;
256 void OnInput_Implementation(FKey Key, EInputEvent KeyEvent)
override;