forked from maikel233/xhook_wowclassic_TBC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Camera.h
47 lines (44 loc) · 1.27 KB
/
Camera.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
#pragma once
#include "Utils.h"
#include "Settings/Settings.h"
#define M_DEG2RAD 0.017453292519943295769236907684886f
#pragma pack(push, 1)
class CameraMgr
{
public:
char pad_0000[14560]; //0x0000
class CameraMgrPtr* cameraptr; ////0x38E0
char pad_38E8[1944]; //0x38E8
}; //Size: 0x4080
static_assert(sizeof(CameraMgr) == 0x4080);
#pragma pack(pop)
#pragma pack(push, 1)
class CameraMgrPtr
{
public:
//From script_camera
char pad_0000[16]; //0x0000
Vector3 Camera_pos; //0x0010
Matrix3x3 mat; //0x001C
float FOV; //0x0040
char pad_0044[500]; //0x0044
float unk_Something1; //0x0238
float Camera_zoomout; //0x023C
float Camera_zoomin; //0x0240
bool unk_wecallit_iszooming; //0x0244
char pad_0245[3]; //0x0245
float camera_max30; //0x0248
char pad_024C[1628]; //0x024C
// 0x0278 Camera goes UP and than down
}; //Size: 0x08A8
static_assert(sizeof(CameraMgrPtr) == 0x8A8);
#pragma pack(pop)
namespace WoW {
class camera {
public:
static CameraMgr* GCamera;
static void Init();
static Vector2 WorldToScreenv2(Vector3 unitPosition);
static bool TraceLine(WObject* Object, Vector3 Target, IntersectFlags intersectFlags);
};
}