73 if (
dis0 > 0.0f &&
dis1 > 0.0f &&
dis2 > 0.0f)
return false;
82 if (
dis0 > 0.0f &&
dis1 > 0.0f &&
dis2 > 0.0f)
return false;
142 if (
contacts1.m_point_count == 0)
return false;
159 if (
contacts2.m_point_count == 0)
return false;
191 if (
dis0 > 0.0f &&
dis1 > 0.0f &&
dis2 > 0.0f)
return false;
200 if (
dis0 > 0.0f &&
dis1 > 0.0f &&
dis2 > 0.0f)
return false;
int bt_plane_clip_triangle(const btVector4 &plane, const btVector3 &point0, const btVector3 &point1, const btVector3 &point2, btVector3 *clipped)
Clips a polygon by a plane.
btScalar bt_distance_point_plane(const btVector4 &plane, const btVector3 &point)
int bt_plane_clip_polygon(const btVector4 &plane, const btVector3 *polygon_points, int polygon_point_count, btVector3 *clipped)
Clips a polygon by a plane.
const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual btScalar getMargin() const
bool find_triangle_collision_clip_method(btPrimitiveTriangle &other, GIM_TRIANGLE_CONTACT &contacts)
Find collision using the clipping method.
int clip_triangle(btPrimitiveTriangle &other, btVector3 *clipped_points)
Clips the triangle against this.
void get_edge_plane(int edge_index, btVector4 &plane) const
Calcs the plane which is paralele to the edge and perpendicular to the triangle plane.
bool overlap_test_conservative(const btPrimitiveTriangle &other)
Test if triangles could collide.
Helper class for colliding Bullet Triangle Shapes.
bool overlap_test_conservative(const btTriangleShapeEx &other)
class btTriangleShapeEx: public btTriangleShape
void buildTriPlane(btVector4 &plane) const
btVector3 can be used to represent 3D points and vectors.