CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
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
6namespace 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 pad{ 0 }; // 1C
26 };
27 static_assert(sizeof(hkpShapeRayCastCollectorOutput) == 0x20);
28}
Definition: hkVector4.h:8
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
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
float hitFraction
Definition: hkpShapeRayCastCollectorOutput.h:22
std::int32_t pad
Definition: hkpShapeRayCastCollectorOutput.h:25