feat: added collision classes (#50)

This commit is contained in:
Aure7138 2022-10-30 21:32:30 +08:00 committed by GitHub
parent 8eb8da7f3c
commit 37361b421f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 1 deletions

View File

@ -1,11 +1,15 @@
#pragma once
#include "../rage/vector.hpp"
#include "phArchetypeDamp.hpp"
#pragma pack(push, 1)
class CNavigation
{
public:
char pad_0000[32]; //0x0000
char pad_0000[16]; //0x0000
class rage::phArchetypeDamp* m_damp; //0x0010
char pad_0018[8]; //0x0018
rage::fvector3 m_right; //0x0020
char pad_002C[4]; //0x002C
rage::fvector3 m_forward; //0x0030
@ -15,3 +19,4 @@ public:
rage::fvector3 m_position; //0x0050
}; //Size: 0x0060
static_assert(sizeof(CNavigation) == 0x5C);
#pragma pack(pop)

16
base/phArchetypeDamp.hpp Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#include "phBoundComposite.hpp"
namespace rage
{
class phArchetypeDamp
{
public:
char pad_0000[32]; //0x0000
class phBoundComposite* m_bound_composite; //0x0020
}; //Size: 0x0028
static_assert(sizeof(phArchetypeDamp) == 0x28);
}

14
base/phBoundCapsule.hpp Normal file
View File

@ -0,0 +1,14 @@
#pragma once
namespace rage
{
class phBoundCapsule
{
public:
char pad_0000[44]; //0x0000
float m_collision; //0x002C
}; //Size: 0x0030
static_assert(sizeof(phBoundCapsule) == 0x30);
}

View File

@ -0,0 +1,15 @@
#pragma once
#include "phBoundCapsule.hpp"
namespace rage
{
class phBoundCapsuleList
{
public:
class phBoundCapsule* m_bound_capsule; //0x0000
}; //Size: 0x0008
static_assert(sizeof(phBoundCapsuleList) == 0x08);
}

16
base/phBoundComposite.hpp Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#include "phBoundCapsuleList.hpp"
namespace rage
{
class phBoundComposite
{
public:
char pad_0000[112]; //0x0000
class phBoundCapsuleList* m_bound_capsule_list; //0x0070
}; //Size: 0x0078
static_assert(sizeof(phBoundComposite) == 0x78);
}