CommonLibSSE (powerof3)
hkpShapeRayCastCollectorOutput.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/H/hkVector4.h"
4 #include "RE/H/hkpShape.h"
5 
6 namespace RE
7 {
9  {
10  public:
11  [[nodiscard]] constexpr bool HasHit() const noexcept { return hitFraction < 1.0f; }
12 
13  constexpr void Reset() noexcept
14  {
15  hitFraction = 1.0f;
17  extraInfo = -1;
18  }
19 
20  // members
22  float hitFraction{ 1.0F }; // 10
23  std::int32_t extraInfo{ -1 }; // 14
25  std::int32_t pad1C{ 0 }; // 1C
26  };
27  static_assert(sizeof(hkpShapeRayCastCollectorOutput) == 0x20);
28 }
Definition: hkVector4.h:9
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
hkpShapeKey shapeKey
Definition: hkpShapeRayCastCollectorOutput.h:24
constexpr bool HasHit() const noexcept
Definition: hkpShapeRayCastCollectorOutput.h:11
std::int32_t extraInfo
Definition: hkpShapeRayCastCollectorOutput.h:23
hkVector4 normal
Definition: hkpShapeRayCastCollectorOutput.h:21
constexpr void Reset() noexcept
Definition: hkpShapeRayCastCollectorOutput.h:13
std::int32_t pad1C
Definition: hkpShapeRayCastCollectorOutput.h:25
float hitFraction
Definition: hkpShapeRayCastCollectorOutput.h:22