A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
GS_Default.h
Go to the documentation of this file.
1#pragma once
2
3#include "CoreMinimal.h"
4#include "VRGripScriptBase.h"
5#include "GameFramework/WorldSettings.h"
6#include "GS_Default.generated.h"
7
8
12UCLASS(NotBlueprintable, ClassGroup = (VRExpansionPlugin))
13class VREXPANSIONPLUGIN_API UGS_Default : public UVRGripScriptBase
14{
16public:
17
18 UGS_Default(const FObjectInitializer& ObjectInitializer);
19
20 //virtual void BeginPlay_Implementation() override;
21 virtual bool GetWorldTransform_Implementation(UGripMotionControllerComponent * GrippingController, float DeltaTime, FTransform & WorldTransform, const FTransform &ParentTransform, FBPActorGripInformation &Grip, AActor * actor, UPrimitiveComponent * root, bool bRootHasInterface, bool bActorHasInterface, bool bIsForTeleport) override;
22
23 virtual void GetAnyScaling(FVector& Scaler, FBPActorGripInformation& Grip, FVector& frontLoc, FVector& frontLocOrig, ESecondaryGripType SecondaryType, FTransform& SecondaryTransform);
24 virtual void ApplySmoothingAndLerp(FBPActorGripInformation& Grip, FVector& frontLoc, FVector& frontLocOrig, float DeltaTime);
25
26 virtual void CalculateSecondaryLocation(FVector & frontLoc, const FVector& BasePoint, FBPActorGripInformation& Grip, UGripMotionControllerComponent * GrippingController);
27};
28
29// An extended default grip script that adds less common grip features that were moved out of the default implementation
30UCLASS(BlueprintType, ClassGroup = (VRExpansionPlugin), hideCategories = TickSettings)
31class VREXPANSIONPLUGIN_API UGS_ExtendedDefault : public UGS_Default
32{
34public:
35
36 // Whether clamp the grip scaling in scaling grips
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SecondaryGripSettings")
38 bool bLimitGripScaling;
40 // Minimum size to allow scaling in double grip to reach
41 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SecondaryGripSettings", meta = (editcondition = "bLimitGripScaling"))
42 FVector_NetQuantize100 MinimumGripScaling;
43
44 // Maximum size to allow scaling in double grip to reach
45 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SecondaryGripSettings", meta = (editcondition = "bLimitGripScaling"))
46 FVector_NetQuantize100 MaximumGripScaling;
47
48 virtual void GetAnyScaling(FVector& Scaler, FBPActorGripInformation& Grip, FVector& frontLoc, FVector& frontLocOrig, ESecondaryGripType SecondaryType, FTransform& SecondaryTransform) override;
49};
ESecondaryGripType
UENUM(Blueprintable)
UCLASS(NotBlueprintable, ClassGroup = (VRExpansionPlugin))
Definition GS_Default.h:17
UCLASS(BlueprintType, ClassGroup = (VRExpansionPlugin), hideCategories = TickSettings)
Definition GS_Default.h:38
FVector_NetQuantize100 MaximumGripScaling
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SecondaryGripSettings", meta = (editcondition...
Definition GS_Default.h:64
bool bLimitGripScaling
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SecondaryGripSettings")
Definition GS_Default.h:48
FVector_NetQuantize100 MinimumGripScaling
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SecondaryGripSettings", meta = (editcondition...
Definition GS_Default.h:56
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = MotionController)
UCLASS(NotBlueprintable, BlueprintType, EditInlineNew, DefaultToInstanced, Abstract,...
virtual bool GetWorldTransform_Implementation(UGripMotionControllerComponent *OwningController, float DeltaTime, FTransform &WorldTransform, const FTransform &ParentTransform, FBPActorGripInformation &Grip, AActor *actor, UPrimitiveComponent *root, bool bRootHasInterface, bool bActorHasInterface, bool bIsForTeleport)
USTRUCT(BlueprintType, Category = "VRExpansionLibrary")