45 if( !
m_bbox.Intersect( aRay, &t ) )
73 if( !
m_bbox.Intersect( aRay, &t ) )
76 if( t < aMaxDistance )
85 return m_bbox.Intersects( aBBox );
bool IntersectP(const RAY &aRay, float aMaxDistance) const override
bool Intersect(const RAY &aRay, HITINFO &aHitInfo) const override
bool Intersects(const BBOX_3D &aBBox) const override
SFVEC3F GetDiffuseColor(const HITINFO &aHitInfo) const override
DUMMY_BLOCK(const BBOX_3D &aBBox)
OBJECT_3D(OBJECT_3D_TYPE aObjType)
const MATERIAL * m_material
Manage a bounding box defined by two SFVEC3F min max points.
SFVEC3F GetCenter() const
Return the center point of the bounding box.
Stores the hit information of a ray with a point on the surface of a object.
float m_tHit
( 4) distance
const OBJECT_3D * pHitObject
( 4) Object that was hitted
SFVEC3F m_HitNormal
(12) normal at the hit point
SFVEC3F m_HitPoint
(12) hit position
unsigned int m_dirIsNeg[3]
SFVEC3F at(float t) const