Unreal SDK  v1.1
Loading...
Searching...
No Matches
WeArtThimbleTrackingObject.h
Go to the documentation of this file.
1#pragma once
2
3#include "CoreMinimal.h"
4#include "Components/ActorComponent.h"
5#include "WeArtCommon.h"
6#include "WeArtMessages.h"
7
8#include "WeArtThimbleTrackingObject.generated.h"
9
13UCLASS(ClassGroup = (Custom), Blueprintable, meta = (BlueprintSpawnableComponent))
14class WEARTPLUGIN_API UWeArtThimbleTrackingObject : public UActorComponent
15{
16 GENERATED_BODY()
17
18public:
19 // Sets default values for this component's properties
20 UWeArtThimbleTrackingObject();
21 ~UWeArtThimbleTrackingObject();
22
23 virtual void BeginPlay() override;
24 virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
25
26 void OnMessageReceived(WeArtMessage *msg);
27
28 inline float GetClosure() const
29 {
30 return Closure;
31 };
32
33 inline float GetAbduction() const
34 {
35 return Abduction;
36 };
37
38
39protected:
40
41 // Hand/finger state variables
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = WeArtThimbleTrackingObject)
43 TEnumAsByte<HandSide> handSide;
44
45 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = WeArtThimbleTrackingObject)
46 TEnumAsByte<ActuationPoint> actuationPoint;
47
48 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = WeArtThimbleTrackingObject)
49 float Closure;
50
51 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = WeArtThimbleTrackingObject)
52 float Abduction;
53};
54
Generic Weart message.
Definition: WeArtMessages.h:94