Unreal SDK  v1.2.0
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
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
27 void OnMessageReceived(WeArtMessage *msg);
28
29 inline float GetClosure() const
30 {
31 return Closure;
32 };
33
34 inline float GetAbduction() const
35 {
36 return Abduction;
37 };
38
39
40protected:
41
42 // Hand/finger state variables
43 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = WeArtThimbleTrackingObject)
44 TEnumAsByte<EHandSide> handSide;
45
46 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = WeArtThimbleTrackingObject)
47 TEnumAsByte<EActuationPoint> actuationPoint;
48
49 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = WeArtThimbleTrackingObject)
50 float Closure;
51
52 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = WeArtThimbleTrackingObject)
53 float Abduction;
54};
55
#define WEARTPLUGIN_API
Definition: Definitions.WEARTPlugin.h:292
Generic Weart message.
Definition: WeArtMessages.h:178