2#include "CoreMinimal.h"
3#include "Components/ActorComponent.h"
6#include "WeArtDeviceTrackingObject.generated.h"
28UCLASS(ClassGroup = (Custom), Blueprintable, meta = (BlueprintSpawnableComponent))
29class WEARTPLUGIN_API UWeArtDeviceTrackingObject :
public USceneComponent
35 UWeArtDeviceTrackingObject();
36 ~UWeArtDeviceTrackingObject();
38 virtual void TickComponent(
float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
override;
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;
49 UPROPERTY(EditAnywhere, Category = WeArtDeviceTrackingObject, Meta = (DisplayName =
"Disable Tracking"))
53 UPROPERTY(EditAnywhere)
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;
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