CommonLibVR
hkpShapeRayCastOutput.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/H/hkpShape.h"
5 
6 namespace RE
7 {
9  {
10  public:
11  enum
12  {
14  };
15 
16  constexpr void ChangeLevel(std::int32_t a_delta) noexcept
17  {
18  assert(shapeKeyIndex + a_delta < kMaxHierarchyDepth);
19  shapeKeyIndex += a_delta;
20  }
21 
22  constexpr void SetKey(hkpShapeKey a_key) noexcept { shapeKeys[shapeKeyIndex] = a_key; }
23 
24  constexpr void Reset() noexcept
25  {
28  shapeKeyIndex = 0;
29  }
30 
31  // members
33  std::int32_t shapeKeyIndex{ 0 }; // 40
34  std::uint32_t pad44; // 44
35  std::uint64_t pad48; // 48
36  };
37  static_assert(sizeof(hkpShapeRayCastOutput) == 0x50);
38 }
Definition: AbsorbEffect.h:6
constexpr hkpShapeKey HK_INVALID_SHAPE_KEY
Definition: hkpShape.h:29
std::uint32_t hkpShapeKey
Definition: hkpContactPointEvent.h:12
Definition: hkpShapeRayCastCollectorOutput.h:9
constexpr void Reset() noexcept
Definition: hkpShapeRayCastCollectorOutput.h:13
Definition: hkpShapeRayCastOutput.h:9
std::uint32_t pad44
Definition: hkpShapeRayCastOutput.h:34
@ kMaxHierarchyDepth
Definition: hkpShapeRayCastOutput.h:13
std::int32_t shapeKeyIndex
Definition: hkpShapeRayCastOutput.h:33
constexpr void SetKey(hkpShapeKey a_key) noexcept
Definition: hkpShapeRayCastOutput.h:22
std::uint64_t pad48
Definition: hkpShapeRayCastOutput.h:35
constexpr void Reset() noexcept
Definition: hkpShapeRayCastOutput.h:24
hkpShapeKey shapeKeys[kMaxHierarchyDepth]
Definition: hkpShapeRayCastOutput.h:32
constexpr void ChangeLevel(std::int32_t a_delta) noexcept
Definition: hkpShapeRayCastOutput.h:16