5#include "CoreMinimal.h"
6#include "VRGripInterface.h"
7#include "PixoVRGripInterface.generated.h"
9class UPixoVRMotionControllerComponent;
46 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"PixoVR | Grip Interface Settings")
47 bool bDenyGripping =
false;
49 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"PixoVR | Grip Interface Settings")
50 bool bDenyDropping =
false;
52 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"PixoVR | Grip Interface Settings")
55 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Grip Interface Settings")
58 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Grip Interface Settings")
59 bool bUseCustomTransform = false;
61 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Grip Interface Settings")
62 FTransform CustomTransform;
87 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category =
"PixoVR | Grip Interface")
88 bool DenyGrippingPixoVR(UGripMotionControllerComponent* GrippingController);
91 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
92 bool DenyTriggerGripping();
95 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
99 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
100 void OnGripObject(UGripMotionControllerComponent* GrippingController,
AActor* GrippedActor);
103 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
104 void OnTryGripObject(UGripMotionControllerComponent* GrippingController,
AActor* GrippedActor);
107 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
108 void OnGripObjectRelease(UGripMotionControllerComponent* ReleasingController,
AActor* GrippedActor);
111 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
115 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
116 void GripTriggerTransform(UGripMotionControllerComponent* GrippingController,
bool& UseCustomTransform, FTransform& CustomTransform);
119 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
123 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
124 bool DisablePhysicsOnDrop();
127 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
128 void OnObjectPaused();
131 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PixoVR | Grip Interface")
132 void OnObjectUnPaused();
EPixoVRGripModeEnum
UENUM(BlueprintType)
EPixoVRGripTriggerModeEnum
UENUM(BlueprintType)
@ GRIP_TRIGGER_TOGGLE_DROP
void OnTryGripObject(UGripMotionControllerComponent *GrippingController, AActor *GrippedActor)
Will be called when user tried to grab the object.
bool DenyGrippingPixoVR(UGripMotionControllerComponent *GrippingController)
Deny gripping. If this is set to true the actor can't be gripped anymore until set the false again.
void OnObjectPaused()
This event runs when the user "pauses" this object. Pausing should turn off visibility and functional...
void GripTriggerMode(EPixoVRGripTriggerModeEnum &GripTriggerMode)
Will be used to determine how the gripping trigger should behave.
void OnGripObjectRelease(UGripMotionControllerComponent *ReleasingController, AActor *GrippedActor)
Will be called when the user releases an object.
void GripTriggerTransform(UGripMotionControllerComponent *GrippingController, bool &UseCustomTransform, FTransform &CustomTransform)
This specified transformation will be used when flag is set and a grip is happening.
void GripMode(EPixoVRGripModeEnum &GripMode)
Will be used to determine how to do the grabbing. Using normal attachment or a physics constraint.
void OnObjectUnPaused()
This event runs when the user "unpauses" this object. Unpausing should turn on visibility and functio...
bool DisablePhysicsOnDrop()
Disable Physics on Drop. When this is set to 'true' if user drops object it will disable physics else...
void OnGripObject(UGripMotionControllerComponent *GrippingController, AActor *GrippedActor)
Will be called when user grabs an object.
bool DenyTriggerGripping()
Deny gripping after triggering grip.
bool DenyDropping()
Deny dropping. If this is set to true the actor will not be dropped after releasing until set to fals...
FTransform CustomTransform
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Grip Interface Settings")