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:
@ -64,6 +64,7 @@ struct Ray_t
|
||||
VectorAligned m_Delta; // direction + length of the ray
|
||||
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
|
||||
void *padding;
|
||||
bool m_IsRay; // are the extents zero?
|
||||
bool m_IsSwept; // is delta != 0?
|
||||
|
||||
@ -74,6 +75,8 @@ struct Ray_t
|
||||
|
||||
m_IsSwept = (m_Delta.LengthSqr() != 0);
|
||||
|
||||
padding = NULL;
|
||||
|
||||
VectorClear( m_Extents );
|
||||
m_IsRay = true;
|
||||
|
||||
@ -87,6 +90,8 @@ struct Ray_t
|
||||
Assert( &end );
|
||||
VectorSubtract( end, start, m_Delta );
|
||||
|
||||
padding = NULL;
|
||||
|
||||
m_IsSwept = (m_Delta.LengthSqr() != 0);
|
||||
|
||||
VectorSubtract( maxs, mins, m_Extents );
|
||||
|
Reference in New Issue
Block a user