CommonLibVR
hkpContactPointEvent.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/h/hkpRigidBody.h"
5 
6 namespace RE
7 {
8  class hkContactPoint;
9  class hkpContactPointProperties;
10  class hkpVelocityAccumulator;
11 
12  using hkpShapeKey = std::uint32_t;
13 
15  {
16  public:
17  enum class Type
18  {
19  kTOI,
21  kManifold,
22 
25  };
26 
27  inline hkpShapeKey* GetShapeKeys(std::uint32_t a_bodyIdx) const
28  {
29  if (a_bodyIdx == 0 || a_bodyIdx == 1) {
30  if (bodies[a_bodyIdx]->numShapeKeysInContactPointProperties > 0) {
32  }
33  }
34  return nullptr;
35  }
36 
37  // members
38  Type type; // 20
39  std::uint32_t pad24; // 24
45  float* separatingVelocity; // 40
46  float* rotateNormal; // 48
48  hkpVelocityAccumulator* accumulators[2]; // 58
49  private:
50  KEEP_FOR_RE()
51  };
52  static_assert(sizeof(hkpContactPointEvent) == 0x68);
53 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: hkContactPoint.h:8
Definition: hkpContactPointProperties.h:11
std::uint8_t numShapeKeysInContactPointProperties
Definition: hkpEntity.h:109
Definition: AbsorbEffect.h:6
std::uint32_t hkpShapeKey
Definition: hkpContactPointEvent.h:12
Definition: hkpCollisionEvent.h:9
hkpRigidBody * bodies[2]
Definition: hkpCollisionEvent.h:27
Definition: hkpContactPointEvent.h:15
hkpContactPointProperties * contactPointProperties
Definition: hkpContactPointEvent.h:41
bool firingCallbacksForFullManifold
Definition: hkpContactPointEvent.h:42
Type type
Definition: hkpContactPointEvent.h:38
hkContactPoint * contactPoint
Definition: hkpContactPointEvent.h:40
hkpVelocityAccumulator * accumulators[2]
Definition: hkpContactPointEvent.h:48
float * rotateNormal
Definition: hkpContactPointEvent.h:46
std::uint32_t pad24
Definition: hkpContactPointEvent.h:39
hkpShapeKey * GetShapeKeys(std::uint32_t a_bodyIdx) const
Definition: hkpContactPointEvent.h:27
hkpShapeKey * shapeKeyStorage
Definition: hkpContactPointEvent.h:47
bool lastCallbackForFullManifold
Definition: hkpContactPointEvent.h:44
bool firstCallbackForFullManifold
Definition: hkpContactPointEvent.h:43
float * separatingVelocity
Definition: hkpContactPointEvent.h:45
Type
Definition: hkpContactPointEvent.h:18