|
|
@@ -12,7 +12,7 @@ static int render_seperation_lock = 0;
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-misc =
|
|
|
+misc =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
static void RenderSeparationData( const Vec3& normal, const Vec3& impact_point, float depth )
|
|
|
@@ -45,7 +45,7 @@ static void RenderSeparationData( const Vec3& normal, const Vec3& impact_point,
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
+Intersects =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bvolume_t::Intersects( const bvolume_t& bv ) const
|
|
|
@@ -73,7 +73,7 @@ bool bvolume_t::Intersects( const bvolume_t& bv ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-SeperationTest =
|
|
|
+SeperationTest =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bvolume_t::SeperationTest( const bvolume_t& bv, Vec3& normal, Vec3& impact_point, float& depth ) const
|
|
|
@@ -95,8 +95,8 @@ bool bvolume_t::SeperationTest( const bvolume_t& bv, Vec3& normal, Vec3& impact_
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-getDistanceSquared =
|
|
|
-seg - seg =
|
|
|
+getDistanceSquared =
|
|
|
+seg - seg =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
float lineseg_t::DistanceSquared( const lineseg_t& ls, float& s_c, float& t_c ) const
|
|
|
@@ -185,8 +185,8 @@ float lineseg_t::DistanceSquared( const lineseg_t& ls, float& s_c, float& t_c )
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-getDistanceSquared =
|
|
|
-seg - ray =
|
|
|
+getDistanceSquared =
|
|
|
+seg - ray =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
float lineseg_t::DistanceSquared( const ray_t& ray, float& s_c, float& t_c ) const
|
|
|
@@ -262,8 +262,8 @@ float lineseg_t::DistanceSquared( const ray_t& ray, float& s_c, float& t_c ) con
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-getDistanceSquared =
|
|
|
-seg - point =
|
|
|
+getDistanceSquared =
|
|
|
+seg - point =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
float lineseg_t::DistanceSquared( const Vec3& point, float& t_c ) const
|
|
|
@@ -297,8 +297,8 @@ float lineseg_t::DistanceSquared( const Vec3& point, float& t_c ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-ClosestPoints =
|
|
|
-seg - seg =
|
|
|
+ClosestPoints =
|
|
|
+seg - seg =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void lineseg_t::ClosestPoints( const lineseg_t& segment1, Vec3& point0, Vec3& point1 ) const
|
|
|
@@ -388,8 +388,8 @@ void lineseg_t::ClosestPoints( const lineseg_t& segment1, Vec3& point0, Vec3& po
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-ClosestPoints =
|
|
|
-seg - ray =
|
|
|
+ClosestPoints =
|
|
|
+seg - ray =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void lineseg_t::ClosestPoints( const ray_t& ray, Vec3& point0, Vec3& point1 ) const
|
|
|
@@ -473,8 +473,8 @@ void lineseg_t::ClosestPoints( const ray_t& ray, Vec3& point0, Vec3& point1 ) co
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-ClosestPoints =
|
|
|
-seg - point =
|
|
|
+ClosestPoints =
|
|
|
+seg - point =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
Vec3 lineseg_t::ClosestPoints( const Vec3& point ) const
|
|
|
@@ -499,7 +499,7 @@ Vec3 lineseg_t::ClosestPoints( const Vec3& point ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Transformed =
|
|
|
+Transformed =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
lineseg_t lineseg_t::Transformed( const Vec3& translate, const Mat3& rotate, float scale ) const
|
|
|
@@ -515,7 +515,7 @@ lineseg_t lineseg_t::Transformed( const Vec3& translate, const Mat3& rotate, flo
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-render =
|
|
|
+render =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void lineseg_t::Render()
|
|
|
@@ -548,7 +548,7 @@ void lineseg_t::Render()
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-PlaneTest =
|
|
|
+PlaneTest =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
float lineseg_t::PlaneTest( const plane_t& plane ) const
|
|
|
@@ -578,8 +578,8 @@ float lineseg_t::PlaneTest( const plane_t& plane ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-line - sphere =
|
|
|
+Intersects =
|
|
|
+line - sphere =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool lineseg_t::Intersects( const bsphere_t& sphere ) const
|
|
|
@@ -590,8 +590,8 @@ bool lineseg_t::Intersects( const bsphere_t& sphere ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-line - aabb =
|
|
|
+Intersects =
|
|
|
+line - aabb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool lineseg_t::Intersects( const aabb_t& box ) const
|
|
|
@@ -602,8 +602,8 @@ bool lineseg_t::Intersects( const aabb_t& box ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-line - obb =
|
|
|
+Intersects =
|
|
|
+line - obb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool lineseg_t::Intersects( const obb_t& obb ) const
|
|
|
@@ -614,7 +614,7 @@ bool lineseg_t::Intersects( const obb_t& obb ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Transformed =
|
|
|
+Transformed =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
ray_t ray_t::Transformed( const Vec3& translate, const Mat3& rotate, float scale ) const
|
|
|
@@ -641,7 +641,7 @@ ray_t ray_t::Transformed( const Vec3& translate, const Mat3& rotate, float scale
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-render =
|
|
|
+render =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void ray_t::Render()
|
|
|
@@ -673,7 +673,7 @@ void ray_t::Render()
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-PlaneTest =
|
|
|
+PlaneTest =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
float ray_t::PlaneTest( const plane_t& plane ) const
|
|
|
@@ -700,8 +700,8 @@ float ray_t::PlaneTest( const plane_t& plane ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-ray - sphere =
|
|
|
+Intersects =
|
|
|
+ray - sphere =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool ray_t::Intersects( const bsphere_t& sphere ) const
|
|
|
@@ -712,8 +712,8 @@ bool ray_t::Intersects( const bsphere_t& sphere ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-ray - aabb =
|
|
|
+Intersects =
|
|
|
+ray - aabb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool ray_t::Intersects( const aabb_t& box ) const
|
|
|
@@ -724,8 +724,8 @@ bool ray_t::Intersects( const aabb_t& box ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-ray - obb =
|
|
|
+Intersects =
|
|
|
+ray - obb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool ray_t::Intersects( const obb_t& obb ) const
|
|
|
@@ -737,8 +737,8 @@ bool ray_t::Intersects( const obb_t& obb ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Set =
|
|
|
-from plane eqtuation =
|
|
|
+Set =
|
|
|
+from plane eqtuation =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void plane_t::Set( float a, float b, float c, float d )
|
|
|
@@ -765,8 +765,8 @@ void plane_t::Set( float a, float b, float c, float d )
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Set =
|
|
|
-from 3 points =
|
|
|
+Set =
|
|
|
+from 3 points =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void plane_t::Set( const Vec3& p0, const Vec3& p1, const Vec3& p2 )
|
|
|
@@ -788,7 +788,7 @@ void plane_t::Set( const Vec3& p0, const Vec3& p1, const Vec3& p2 )
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Transformed =
|
|
|
+Transformed =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
plane_t plane_t::Transformed( const Vec3& translate, const Mat3& rotate, float scale ) const
|
|
|
@@ -808,7 +808,7 @@ plane_t plane_t::Transformed( const Vec3& translate, const Mat3& rotate, float s
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-render =
|
|
|
+render =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void plane_t::Render()
|
|
|
@@ -855,8 +855,8 @@ void plane_t::Render()
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Set =
|
|
|
-from a vec3 array =
|
|
|
+Set =
|
|
|
+from a vec3 array =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void bsphere_t::Set( const void* pointer, uint stride, int count )
|
|
|
@@ -901,7 +901,7 @@ void bsphere_t::Set( const void* pointer, uint stride, int count )
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-render =
|
|
|
+render =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void bsphere_t::Render()
|
|
|
@@ -920,7 +920,7 @@ void bsphere_t::Render()
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Transformed =
|
|
|
+Transformed =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bsphere_t bsphere_t::Transformed( const Vec3& translate, const Mat3& rotate, float scale ) const
|
|
|
@@ -935,8 +935,8 @@ bsphere_t bsphere_t::Transformed( const Vec3& translate, const Mat3& rotate, flo
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-sphere - sphere =
|
|
|
+Intersects =
|
|
|
+sphere - sphere =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bsphere_t::Intersects( const bsphere_t& other ) const
|
|
|
@@ -948,8 +948,8 @@ bool bsphere_t::Intersects( const bsphere_t& other ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-sphere - aabb =
|
|
|
+Intersects =
|
|
|
+sphere - aabb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bsphere_t::Intersects( const aabb_t& box ) const
|
|
|
@@ -960,8 +960,8 @@ bool bsphere_t::Intersects( const aabb_t& box ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-sphere - ray =
|
|
|
+Intersects =
|
|
|
+sphere - ray =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bsphere_t::Intersects( const ray_t& ray ) const
|
|
|
@@ -983,8 +983,8 @@ bool bsphere_t::Intersects( const ray_t& ray ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-sphere - segment =
|
|
|
+Intersects =
|
|
|
+sphere - segment =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bsphere_t::Intersects( const lineseg_t& segment ) const
|
|
|
@@ -1010,8 +1010,8 @@ bool bsphere_t::Intersects( const lineseg_t& segment ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-sphere - obb =
|
|
|
+Intersects =
|
|
|
+sphere - obb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bsphere_t::Intersects( const obb_t& obb ) const
|
|
|
@@ -1022,7 +1022,7 @@ bool bsphere_t::Intersects( const obb_t& obb ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-PlaneTest =
|
|
|
+PlaneTest =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
float bsphere_t::PlaneTest( const plane_t& plane ) const
|
|
|
@@ -1040,8 +1040,8 @@ float bsphere_t::PlaneTest( const plane_t& plane ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-SeperationTest =
|
|
|
-sphere - sphere =
|
|
|
+SeperationTest =
|
|
|
+sphere - sphere =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bsphere_t::SeperationTest( const bsphere_t& sphere, Vec3& normal, Vec3& impact_point, float& depth ) const
|
|
|
@@ -1071,8 +1071,8 @@ bool bsphere_t::SeperationTest( const bsphere_t& sphere, Vec3& normal, Vec3& imp
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-SeperationTest =
|
|
|
-sphere - aabb =
|
|
|
+SeperationTest =
|
|
|
+sphere - aabb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bsphere_t::SeperationTest( const aabb_t& box, Vec3& normal, Vec3& impact_point, float& depth ) const
|
|
|
@@ -1091,8 +1091,8 @@ bool bsphere_t::SeperationTest( const aabb_t& box, Vec3& normal, Vec3& impact_po
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-SeperationTest =
|
|
|
-sphere - obb =
|
|
|
+SeperationTest =
|
|
|
+sphere - obb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool bsphere_t::SeperationTest( const obb_t& obb, Vec3& normal, Vec3& impact_point, float& depth ) const
|
|
|
@@ -1113,8 +1113,8 @@ bool bsphere_t::SeperationTest( const obb_t& obb, Vec3& normal, Vec3& impact_poi
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Set =
|
|
|
-Calc origin and radius from a vec3 array =
|
|
|
+Set =
|
|
|
+Calc origin and radius from a vec3 array =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void aabb_t::Set( const void* pointer, uint stride, int count )
|
|
|
@@ -1143,7 +1143,7 @@ void aabb_t::Set( const void* pointer, uint stride, int count )
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Transformed =
|
|
|
+Transformed =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
aabb_t aabb_t::Transformed( const Vec3& translate, const Mat3& rotate, float scale ) const
|
|
|
@@ -1181,7 +1181,7 @@ aabb_t aabb_t::Transformed( const Vec3& translate, const Mat3& rotate, float sca
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-render =
|
|
|
+render =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void aabb_t::Render()
|
|
|
@@ -1211,8 +1211,8 @@ void aabb_t::Render()
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-aabb - aabb =
|
|
|
+Intersects =
|
|
|
+aabb - aabb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool aabb_t::Intersects( const aabb_t& other ) const
|
|
|
@@ -1236,8 +1236,8 @@ bool aabb_t::Intersects( const aabb_t& other ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-aabb - sphere =
|
|
|
+Intersects =
|
|
|
+aabb - sphere =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool aabb_t::Intersects( const bsphere_t& sphere ) const
|
|
|
@@ -1268,8 +1268,8 @@ bool aabb_t::Intersects( const bsphere_t& sphere ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-aabb - ray =
|
|
|
+Intersects =
|
|
|
+aabb - ray =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool aabb_t::Intersects( const ray_t& ray ) const
|
|
|
@@ -1317,8 +1317,8 @@ bool aabb_t::Intersects( const ray_t& ray ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-aabb - segment =
|
|
|
+Intersects =
|
|
|
+aabb - segment =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool aabb_t::Intersects( const lineseg_t& segment ) const
|
|
|
@@ -1366,8 +1366,8 @@ bool aabb_t::Intersects( const lineseg_t& segment ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-aabb - obb =
|
|
|
+Intersects =
|
|
|
+aabb - obb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool aabb_t::Intersects( const obb_t& obb ) const
|
|
|
@@ -1378,7 +1378,7 @@ bool aabb_t::Intersects( const obb_t& obb ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-PlaneTest =
|
|
|
+PlaneTest =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
float aabb_t::PlaneTest( const plane_t& plane ) const
|
|
|
@@ -1416,8 +1416,8 @@ float aabb_t::PlaneTest( const plane_t& plane ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-SeperationTest =
|
|
|
-aabb - aabb =
|
|
|
+SeperationTest =
|
|
|
+aabb - aabb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool aabb_t::SeperationTest( const aabb_t& other, Vec3& normal, Vec3& impact_point, float& depth ) const
|
|
|
@@ -1495,8 +1495,8 @@ bool aabb_t::SeperationTest( const aabb_t& other, Vec3& normal, Vec3& impact_poi
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-SeperationTest =
|
|
|
-aabb - obb =
|
|
|
+SeperationTest =
|
|
|
+aabb - obb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool aabb_t::SeperationTest( const obb_t& obb, Vec3& normal, Vec3& impact_point, float& depth ) const
|
|
|
@@ -1517,8 +1517,8 @@ bool aabb_t::SeperationTest( const obb_t& obb, Vec3& normal, Vec3& impact_point,
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-SeperationTest =
|
|
|
-aabb - sphere =
|
|
|
+SeperationTest =
|
|
|
+aabb - sphere =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool aabb_t::SeperationTest( const bsphere_t& sphere, Vec3& normal, Vec3& impact_point, float& depth ) const
|
|
|
@@ -1597,8 +1597,8 @@ bool aabb_t::SeperationTest( const bsphere_t& sphere, Vec3& normal, Vec3& impact
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Set =
|
|
|
-calc from a vec3 array =
|
|
|
+Set =
|
|
|
+calc from a vec3 array =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void obb_t::Set( const void* pointer, uint stride, int count )
|
|
|
@@ -1632,7 +1632,7 @@ void obb_t::Set( const void* pointer, uint stride, int count )
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-render =
|
|
|
+render =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
void obb_t::Render()
|
|
|
@@ -1658,7 +1658,7 @@ void obb_t::Render()
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Transformed =
|
|
|
+Transformed =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
obb_t obb_t::Transformed( const Vec3& translate, const Mat3& rotate, float scale ) const
|
|
|
@@ -1675,7 +1675,7 @@ obb_t obb_t::Transformed( const Vec3& translate, const Mat3& rotate, float scale
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-PlaneTest =
|
|
|
+PlaneTest =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
float obb_t::PlaneTest( const plane_t& plane ) const
|
|
|
@@ -1700,8 +1700,8 @@ float obb_t::PlaneTest( const plane_t& plane ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-obb - obb =
|
|
|
+Intersects =
|
|
|
+obb - obb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool obb_t::Intersects( const obb_t& other ) const
|
|
|
@@ -1836,8 +1836,8 @@ bool obb_t::Intersects( const obb_t& other ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-obb - ray =
|
|
|
+Intersects =
|
|
|
+obb - ray =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool obb_t::Intersects( const ray_t& ray ) const
|
|
|
@@ -1855,9 +1855,9 @@ bool obb_t::Intersects( const ray_t& ray ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-obb - segment =
|
|
|
-ToDo: not working good =
|
|
|
+Intersects =
|
|
|
+obb - segment =
|
|
|
+ToDo: not working good =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool obb_t::Intersects( const lineseg_t& segment ) const
|
|
|
@@ -1916,8 +1916,8 @@ bool obb_t::Intersects( const lineseg_t& segment ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-obb - sphere =
|
|
|
+Intersects =
|
|
|
+obb - sphere =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool obb_t::Intersects( const bsphere_t& sphere ) const
|
|
|
@@ -1932,8 +1932,8 @@ bool obb_t::Intersects( const bsphere_t& sphere ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-Intersects =
|
|
|
-obb - aabb =
|
|
|
+Intersects =
|
|
|
+obb - aabb =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool obb_t::Intersects( const aabb_t& aabb ) const
|
|
|
@@ -1948,8 +1948,8 @@ bool obb_t::Intersects( const aabb_t& aabb ) const
|
|
|
|
|
|
/*
|
|
|
=======================================================================================================================================
|
|
|
-SeperationTest =
|
|
|
-obb - sphere =
|
|
|
+SeperationTest =
|
|
|
+obb - sphere =
|
|
|
=======================================================================================================================================
|
|
|
*/
|
|
|
bool obb_t::SeperationTest( const bsphere_t& sphere, Vec3& normal, Vec3& impact_point, float& depth ) const
|