A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
PlayerAlignComponent.h
Go to the documentation of this file.
1// Copyright(c) Pixo Group. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Components/SceneComponent.h"
7#include "PlayerAlignComponent.generated.h"
8
10
14UCLASS(Blueprintable, ClassGroup=(PixoVR), meta=(BlueprintSpawnableComponent))
15class PIXOCORE_API UPlayerAlignComponent : public USceneComponent
16{
17 GENERATED_BODY()
19public:
21
22protected:
23 virtual void BeginPlay() override;
24 virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
25
26public:
27 UPROPERTY(BlueprintReadWrite, Replicated, Category = "PixovR | Align")
28 APixoVRCharacter* PixoVRCharacter;
29
30 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
31 FRotator RotationOffset;
32
33 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
34 bool bLockRoll;
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
37 bool bLockPitch;
38
39 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
40 bool bLockYaw;
41
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
43 float AlignmentSpeed;
44
45#if WITH_EDITOR
46 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
47#endif
48};
Pixo VR Character This class represents the main character in the Pixo VR game. It extends the AVRCha...
Component that aligns an object to player.
FRotator RotationOffset
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
bool bLockPitch
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
bool bLockYaw
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
float AlignmentSpeed
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")
APixoVRCharacter * PixoVRCharacter
UPROPERTY(BlueprintReadWrite, Replicated, Category = "PixovR | Align")
bool bLockRoll
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "PixoVR | Align")