Files
kdm-re/include/gk/structs/validity.h
T

28 lines
653 B
C++

#pragma once
#include "gk/structs/math.h"
namespace gk {
// DAT_103d3230: two corners consumed as six consecutive floats by
// FUN_101ab6d0's clamp-and-distance validity check.
GK_PACK_PUSH(8)
struct ValidityBox {
Vec3 minimum;
Vec3 maximum;
};
// DAT_103e29b0..DAT_103e29cf, repeated with stride 0x20 for six candidates.
// FUN_100e4140 writes source position at +0x00, transformed position at +0x0c,
// tracking id at +0x18, and the validity byte at +0x1c.
struct ValidityCandidate {
Vec3 source_position;
Vec3 transformed_position;
float tracking_id;
std::uint8_t valid;
std::uint8_t reserved[3];
};
GK_PACK_POP
} // namespace gk