CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
hkpShapeRayCastOutput.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/H/hkpShape.h"
5
6namespace 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 };
35 static_assert(sizeof(hkpShapeRayCastOutput) == 0x50);
36}
Definition: AbsorbEffect.h:6
std::uint32_t hkpShapeKey
Definition: hkpShape.h:27
constexpr hkpShapeKey HK_INVALID_SHAPE_KEY
Definition: hkpShape.h:28
Definition: hkpShapeRayCastCollectorOutput.h:9
constexpr void Reset() noexcept
Definition: hkpShapeRayCastCollectorOutput.h:13
Definition: hkpShapeRayCastOutput.h:9
@ kMaxHierarchyDepth
Definition: hkpShapeRayCastOutput.h:13
std::int32_t shapeKeyIndex
Definition: hkpShapeRayCastOutput.h:33
constexpr void SetKey(hkpShapeKey a_key) noexcept
Definition: hkpShapeRayCastOutput.h:22
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