-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCameraPawn.h
52 lines (38 loc) · 1.15 KB
/
CameraPawn.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include <Runtime/Core/Public/Misc/App.h>
#include "CameraPawn.generated.h"
UCLASS()
class MODELVIEWER_API ACameraPawn : public APawn
{
GENERATED_BODY()
public:
// Sets default values for this pawn's properties
ACameraPawn();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
UPROPERTY (EditAnywhere)
ACameraActor* _myCamera = NULL;
UPROPERTY(EditAnywhere)
FVector _objVector = FVector(0 ,0 ,0);
UPROPERTY(VisibleAnywhere)
FVector _result;
UPROPERTY (EditAnywhere)
float _speed = 300;
UPROPERTY(EditAnywhere)
float _speedRot = 25;
UPROPERTY(EditAnywhere)
bool moving = false;
//Input Functions
void CameraZoom(float AxisValue);
void CameraZoomIn();
void CameraZoomOut();
};