mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
small fixes
This commit is contained in:
parent
c5ab5996a3
commit
f5b5130e8b
8 changed files with 85 additions and 134 deletions
|
|
@ -23,6 +23,11 @@ class AABBFaces{
|
|||
public:
|
||||
std::array<std::pair<rayvec3, rayvec2>, AABBFACES_COUNT> faces; // every face is min-point and opposite corner point
|
||||
|
||||
static constexpr std::array<AAFaceKind,AABBFACES_COUNT> KINDS_ORDER = {
|
||||
AAFaceKind::Xperp, AAFaceKind::Xperp,
|
||||
AAFaceKind::Yperp, AAFaceKind::Yperp,
|
||||
AAFaceKind::Zperp, AAFaceKind::Zperp};
|
||||
|
||||
AABBFaces(){};
|
||||
AABBFaces(const rayvec3& parentBoxPos, const AABB& parentBox);
|
||||
|
||||
|
|
@ -57,7 +62,8 @@ static RayRelation isRayIntersectsAAFace(
|
|||
const rayvec3& rayOrigin,
|
||||
const rayvec3& rayDir,
|
||||
const rayvec3& faceMin,
|
||||
const rayvec2& faceOppositeCorner
|
||||
const rayvec2& faceOppositeCorner,
|
||||
glm::ivec3& normal_ret
|
||||
);
|
||||
|
||||
static RayRelation rayIntersectAABB(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue