CommonLibVR
Loading...
Searching...
No Matches
hkpConstraintInstance.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace RE
6{
7 struct hkConstraintInternal;
8 class hkpConstraintData;
9 class hkpConstraintOwner;
10 struct hkpModifierConstraintAtom;
11
13 {
14 public:
16 {
18 kPSI,
20 kTOI,
23
24 kTotal
25 };
26
28 {
29 kRemap = 0,
30 kRemove = 1,
31 kResetRemove = 2
32 };
33
34 inline static constexpr auto RTTI = RTTI_hkpConstraintInstance;
35 inline static constexpr auto VTABLE = VTABLE_hkpConstraintInstance;
36
37 ~hkpConstraintInstance() override; // 00
38
40 {
41 return reinterpret_cast<hkpRigidBody*>(entities[0]);
42 }
43
45 {
46 return reinterpret_cast<hkpRigidBody*>(entities[1]);
47 }
48
49 // members
52 hkpModifierConstraintAtom* constraintModifiers; // 20
55 bool wantRuntime; // 39
59 uint64_t userData; // 58
61 uint32_t uid; // 68
62 private:
64 };
65 static_assert(sizeof(hkpConstraintInstance) == 0x70);
66
84 static_assert(sizeof(hkConstraintInternal) == 0x40);
85}
#define KEEP_FOR_RE()
Definition PCH.h:517
Definition EnumSet.h:9
Definition hkReferencedObject.h:11
Definition hkSmallArray.h:7
Definition hkStringPtr.h:6
Definition hkpConstraintData.h:11
Definition hkpConstraintInstance.h:13
hkpRigidBody * GetRigidBodyB() const
Definition hkpConstraintInstance.h:44
hkpEntity * entities[2]
Definition hkpConstraintInstance.h:53
~hkpConstraintInstance() override
hkStringPtr name
Definition hkpConstraintInstance.h:58
REX::EnumSet< ConstraintPriority, std::uint8_t > priority
Definition hkpConstraintInstance.h:54
static constexpr auto RTTI
Definition hkpConstraintInstance.h:34
hkpConstraintData * data
Definition hkpConstraintInstance.h:51
static constexpr auto VTABLE
Definition hkpConstraintInstance.h:35
ConstraintPriority
Definition hkpConstraintInstance.h:16
hkConstraintInternal * internal
Definition hkpConstraintInstance.h:60
uint64_t userData
Definition hkpConstraintInstance.h:59
OnDestructionRemapInfo
Definition hkpConstraintInstance.h:28
hkSmallArray< hkpConstraintListener * > listeners
Definition hkpConstraintInstance.h:57
bool wantRuntime
Definition hkpConstraintInstance.h:55
hkpConstraintOwner * owner
Definition hkpConstraintInstance.h:50
hkpModifierConstraintAtom * constraintModifiers
Definition hkpConstraintInstance.h:52
REX::EnumSet< OnDestructionRemapInfo, std::uint8_t > destructionRemapInfo
Definition hkpConstraintInstance.h:56
uint32_t uid
Definition hkpConstraintInstance.h:61
hkpRigidBody * GetRigidBodyA() const
Definition hkpConstraintInstance.h:39
Definition hkpConstraintOwner.h:11
Definition hkpEntity.h:25
Definition hkpRigidBody.h:8
Definition AbsorbEffect.h:6
std::uint16_t hkObjectIndex
Definition hkBaseTypes.h:5
constexpr std::array< REL::ID, 1 > VTABLE_hkpConstraintInstance
Definition Offsets_VTABLE.h:14198
constexpr REL::ID RTTI_hkpConstraintInstance(static_cast< std::uint64_t >(689860))
Definition hkpConstraintInstance.h:68
REX::EnumSet< hkpConstraintInstance::ConstraintPriority, std::uint8_t > priority
Definition hkpConstraintInstance.h:74
uint16_t sizeOfSchemas
Definition hkpConstraintInstance.h:75
hkpConstraintRuntime * runtime
Definition hkpConstraintInstance.h:80
uint16_t numSolverElemTemps
Definition hkpConstraintInstance.h:77
uint8_t whoIsMaster
Definition hkpConstraintInstance.h:78
hkpEntity * entities[2]
Definition hkpConstraintInstance.h:70
bool isNormalType
Definition hkpConstraintInstance.h:79
hkpConstraintAtom * atoms
Definition hkpConstraintInstance.h:71
uint16_t numSolverResults
Definition hkpConstraintInstance.h:76
uint16_t atomsSize
Definition hkpConstraintInstance.h:72
uint16_t runtimeSize
Definition hkpConstraintInstance.h:81
hkObjectIndex slaveIndex
Definition hkpConstraintInstance.h:82
uint8_t callbackRequest
Definition hkpConstraintInstance.h:73
hkpConstraintInstance * constraint
Definition hkpConstraintInstance.h:69
Definition hkpConstraintAtom.h:8