1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Updated Ray_t class definition (bug 3634, r=dvander,Fyren)

This commit is contained in:
Matt Woodrow
2009-03-02 14:38:22 +13:00
parent 027b04693f
commit 33f3241fe6

View File

@ -64,6 +64,7 @@ struct Ray_t
VectorAligned m_Delta; // direction + length of the ray VectorAligned m_Delta; // direction + length of the ray
VectorAligned m_StartOffset; // Add this to m_Start to get the actual ray start VectorAligned m_StartOffset; // Add this to m_Start to get the actual ray start
VectorAligned m_Extents; // Describes an axis aligned box extruded along a ray VectorAligned m_Extents; // Describes an axis aligned box extruded along a ray
void *padding;
bool m_IsRay; // are the extents zero? bool m_IsRay; // are the extents zero?
bool m_IsSwept; // is delta != 0? bool m_IsSwept; // is delta != 0?
@ -74,6 +75,8 @@ struct Ray_t
m_IsSwept = (m_Delta.LengthSqr() != 0); m_IsSwept = (m_Delta.LengthSqr() != 0);
padding = NULL;
VectorClear( m_Extents ); VectorClear( m_Extents );
m_IsRay = true; m_IsRay = true;
@ -87,6 +90,8 @@ struct Ray_t
Assert( &end ); Assert( &end );
VectorSubtract( end, start, m_Delta ); VectorSubtract( end, start, m_Delta );
padding = NULL;
m_IsSwept = (m_Delta.LengthSqr() != 0); m_IsSwept = (m_Delta.LengthSqr() != 0);
VectorSubtract( maxs, mins, m_Extents ); VectorSubtract( maxs, mins, m_Extents );