blob: 42ed234435553f7a4a18ce10d08f1400dc132710 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "collision.hpp"
#include <bit>
namespace floormat {
#ifdef FLOORMAT_64
void compact_bb_extractor::ExtractBoundingBox(compact_bb* object, BB* bbox)
{
if constexpr(sizeof(void*) >= 8)
*bbox = std::bit_cast<loose_quadtree::BoundingBox<std::int16_t>>((void*)object);
}
#endif
} // namespace floormat
|