Unreal SDK  v1.2.0
Loading...
Searching...
No Matches
WeArtHapticController.h
Go to the documentation of this file.
1
2#pragma once
3
4#include "CoreMinimal.h"
5#include "WeArtController.h"
7#include "WeArtHapticObject.h"
8#include "Components/ActorComponent.h"
11
18UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
19class WEARTPLUGIN_API UWeArtHapticController : public UActorComponent
20{
21 GENERATED_BODY()
22
23public:
24 // Sets default values for this component's properties
26
27protected:
28 // Called when the game starts
29 virtual void BeginPlay() override;
31 void SetFingerForce(UWeArtHapticObject* HapticObject, WeArtTouchEffect* TouchEffect, WeArtFingerType FingerType, FVector LastLoc, float
32 LastTime);
34 WeArtTouchEffect* ThumbGraspEffect = nullptr;
36 WeArtTouchEffect* IndexGraspEffect = nullptr;
38 WeArtTouchEffect* MiddleGraspEffect = nullptr;
40 UWeArtHandController* HandController;
42 UWeArtPhysicHandler* PhysicHandler;
44 float DynamicForceByDistance = 0;
46 FVector LastIndexPosition;
48 float LastIndexTime;
49
51 void UpdateEffects();
52public:
53 // Called every frame
54 virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
55
56
57};
#define WEARTPLUGIN_API
Definition: Definitions.WEARTPlugin.h:292
WeArtFingerType
Definition: WeArtFingerType.h:4
Controls hand interactions and haptic feedback.
Controls haptic feedback for the controller.
Handles the physics interactions between physical and phantom hands.
Effect to be applied to the thimble.
Definition: WeArtTouchEffect.h:22