Skip to content

Commit

Permalink
hkpContactPointProperties RE
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed May 28, 2024
1 parent f71d05c commit 07b6ba2
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cmake/sourcelist.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ set(SOURCES
include/RE/H/hkBaseObject.h
include/RE/H/hkBaseTypes.h
include/RE/H/hkContactPoint.h
include/RE/H/hkContactPointMaterial.h
include/RE/H/hkContainerAllocators.h
include/RE/H/hkFinishLoadedObjectFlag.h
include/RE/H/hkMatrix3.h
Expand Down Expand Up @@ -1002,6 +1003,7 @@ set(SOURCES
include/RE/H/hkpConstraintOwner.h
include/RE/H/hkpContactListener.h
include/RE/H/hkpContactPointEvent.h
include/RE/H/hkpContactPointProperties.h
include/RE/H/hkpConvexListFilter.h
include/RE/H/hkpConvexShape.h
include/RE/H/hkpEaseConstraintsAction.h
Expand Down
26 changes: 26 additions & 0 deletions include/RE/H/hkContactPointMaterial.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#pragma once

#include "RE/H/hkBaseTypes.h"

namespace RE
{
class hkContactPointMaterial
{
public:
enum class Flag
{
kIsNew = 1 << 0,
kUsesSolverPath2 = 1 << 1,
kBreakoffObjectID = 1 << 2,
kIsDisabled = 1 << 3
};

// members
std::uint64_t userData; // 00
hkUFloat8 friction; // 08
std::uint8_t restitution; // 09
hkUFloat8 maxImpulse; // 0A
stl::enumeration<Flag, std::uint8_t> flags; // 0B
};
static_assert(sizeof(hkContactPointMaterial) == 0x10);
}
17 changes: 17 additions & 0 deletions include/RE/H/hkpContactPointProperties.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#pragma once

#include "RE/H/hkContactPointMaterial.h"
#include "RE/H/hkpSolverResults.h"

namespace RE
{
class hkpContactPointProperties :
public hkpSolverResults, // 00
public hkContactPointMaterial // 08
{
public:
// members
float internalData; // 18
};
static_assert(sizeof(hkpContactPointProperties) == 0x20);
}
5 changes: 2 additions & 3 deletions include/RE/H/hkpSolverResults.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

namespace RE
{

class hkpSolverResults
{
public:
// members
float impulse; // 00
float data; // 04
};
static_assert(sizeof(hkpSolverResults) == 0x08);

}
}
2 changes: 2 additions & 0 deletions include/RE/Skyrim.h
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@
#include "RE/H/hkBaseObject.h"
#include "RE/H/hkBaseTypes.h"
#include "RE/H/hkContactPoint.h"
#include "RE/H/hkContactPointMaterial.h"
#include "RE/H/hkContainerAllocators.h"
#include "RE/H/hkFinishLoadedObjectFlag.h"
#include "RE/H/hkMatrix3.h"
Expand Down Expand Up @@ -1004,6 +1005,7 @@
#include "RE/H/hkpConstraintOwner.h"
#include "RE/H/hkpContactListener.h"
#include "RE/H/hkpContactPointEvent.h"
#include "RE/H/hkpContactPointProperties.h"
#include "RE/H/hkpConvexListFilter.h"
#include "RE/H/hkpConvexShape.h"
#include "RE/H/hkpEaseConstraintsAction.h"
Expand Down

0 comments on commit 07b6ba2

Please sign in to comment.