76 if( t < aMaxDistance )
bool IntersectP(const RAY &aRay, float aMaxDistance) const override
Manage a bounding box defined by two SFVEC3F min max points.
bool Intersect(const RAY &aRay, float *t) const
void Generate(SFVEC3F &aNormal, const RAY &aRay, const HITINFO &aHitInfo) const
float m_tHit
( 4) distance
SFVEC3F at(float t) const
SFVEC3F m_HitPoint
(12) hit position
SFVEC3F GetCenter() const
Return the center point of the bounding box.
DUMMY_BLOCK(const BBOX_3D &aBBox)
bool Intersects(const BBOX_3D &aBBox) const override
unsigned int m_dirIsNeg[3]
const MATERIAL * m_material
const OBJECT_3D * pHitObject
( 4) Object that was hitted
void Set(const SFVEC3F &aPbMin, const SFVEC3F &aPbMax)
Set bounding box with new parameters.
SFVEC3F GetDiffuseColor(const HITINFO &aHitInfo) const override
Stores the hit information of a ray with a point on the surface of a object.
SFVEC3F m_HitNormal
(12) normal at the hit point
bool Intersect(const RAY &aRay, HITINFO &aHitInfo) const override
void Reset()
Reset the bounding box to zero and de-initialize it.
bool Intersects(const BBOX_3D &aBBox) const
Test if a bounding box intersects this box.