Unreal SDK  v1.1
Loading...
Searching...
No Matches
WeArtDeviceTrackingObject.h
Go to the documentation of this file.
1#pragma once
2#include "CoreMinimal.h"
3#include "Components/ActorComponent.h"
4#include "WeArtCommon.h"
5
6#include "WeArtDeviceTrackingObject.generated.h"
7
8UENUM()
10{
13};
14
15UENUM()
17{
26};
27
28UCLASS(ClassGroup = (Custom), Blueprintable, meta = (BlueprintSpawnableComponent))
29class WEARTPLUGIN_API UWeArtDeviceTrackingObject : public USceneComponent
30{
31 GENERATED_BODY()
32
33public:
34 // Sets default values for this component's properties
35 UWeArtDeviceTrackingObject();
36 ~UWeArtDeviceTrackingObject();
37
38 virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
39
40protected:
41
42 // State variables
43 UPROPERTY(EditAnywhere, Category = WeArtDeviceTrackingObject, Meta = (DisplayName = "Update method"))
44 TEnumAsByte<TrackingUpdateMethod> updateMethod;
45 UPROPERTY(BlueprintReadWrite, Category = WeArtDeviceTrackingObject, Meta = (DisplayName = "Tracking source"))
46 FTransform trackingSource;
47
48 // Enable external tracker
49 UPROPERTY(EditAnywhere, Category = WeArtDeviceTrackingObject, Meta = (DisplayName = "Disable Tracking"))
50 bool disableTracking;
51
52 // Offset
53 UPROPERTY(EditAnywhere)
54 bool useOffsetPreset;
55 UPROPERTY(EditAnywhere, Category = WeArtDeviceTrackingObject, Meta = (DisplayName = "Offset preset", EditCondition="useOffsetPreset"))
56 TEnumAsByte<OffsetPreset> offsetPreset;
57 UPROPERTY(EditAnywhere, Category = WeArtDeviceTrackingObject, Meta = (DisplayName = "Position offset", EditCondition = "!useOffsetPreset"))
58 FVector positionOffset;
59 UPROPERTY(EditAnywhere, Category = WeArtDeviceTrackingObject, Meta = (DisplayName = "Rotation offset", EditCondition = "!useOffsetPreset"))
60 FVector rotationOffset;
61};
TrackingUpdateMethod
Definition: WeArtDeviceTrackingObject.h:10
@ PostPhysicsUpdate
Definition: WeArtDeviceTrackingObject.h:12
@ PrePhysicsUpdate
Definition: WeArtDeviceTrackingObject.h:11
OffsetPreset
Definition: WeArtDeviceTrackingObject.h:17
@ OculusLeftWrist
Definition: WeArtDeviceTrackingObject.h:20
@ OculusRightWrist
Definition: WeArtDeviceTrackingObject.h:21
@ OculusLeftPalm
Definition: WeArtDeviceTrackingObject.h:22
@ HtcViveRight
Definition: WeArtDeviceTrackingObject.h:19
@ HtcViveLeft
Definition: WeArtDeviceTrackingObject.h:18
@ OculusRightPalm
Definition: WeArtDeviceTrackingObject.h:23
@ OculusRightPalmTwisted
Definition: WeArtDeviceTrackingObject.h:25
@ OculusLeftPalmTwisted
Definition: WeArtDeviceTrackingObject.h:24