Blender  V3.3
Functions | Variables
btPolyhedralContactClipping.cpp File Reference
#include "btPolyhedralContactClipping.h"
#include "BulletCollision/CollisionShapes/btConvexPolyhedron.h"
#include <float.h>

Go to the source code of this file.

Functions

static bool TestSepAxis (const btConvexPolyhedron &hullA, const btConvexPolyhedron &hullB, const btTransform &transA, const btTransform &transB, const btVector3 &sep_axis, btScalar &depth, btVector3 &witnessPointA, btVector3 &witnessPointB)
 
bool IsAlmostZero (const btVector3 &v)
 
SIMD_FORCE_INLINE void btSegmentsClosestPoints (btVector3 &ptsVector, btVector3 &offsetA, btVector3 &offsetB, btScalar &tA, btScalar &tB, const btVector3 &translation, const btVector3 &dirA, btScalar hlenA, const btVector3 &dirB, btScalar hlenB)
 

Variables

int gExpectedNbTests = 0
 
int gActualNbTests = 0
 
bool gUseInternalObject = true
 
static int gActualSATPairTests = 0
 

Function Documentation

◆ btSegmentsClosestPoints()

SIMD_FORCE_INLINE void btSegmentsClosestPoints ( btVector3 ptsVector,
btVector3 offsetA,
btVector3 offsetB,
btScalar tA,
btScalar tB,
const btVector3 translation,
const btVector3 dirA,
btScalar  hlenA,
const btVector3 dirB,
btScalar  hlenB 
)

Definition at line 175 of file btPolyhedralContactClipping.cpp.

References btDot().

Referenced by btPolyhedralContactClipping::findSeparatingAxis().

◆ IsAlmostZero()

bool IsAlmostZero ( const btVector3 v)
inline

Definition at line 111 of file btPolyhedralContactClipping.cpp.

References btFabs(), e, and v.

Referenced by btPolyhedralContactClipping::findSeparatingAxis().

◆ TestSepAxis()

static bool TestSepAxis ( const btConvexPolyhedron hullA,
const btConvexPolyhedron hullB,
const btTransform transA,
const btTransform transB,
const btVector3 sep_axis,
btScalar depth,
btVector3 witnessPointA,
btVector3 witnessPointB 
)
static

Definition at line 76 of file btPolyhedralContactClipping.cpp.

References btAssert, and btVector3.

Referenced by btPolyhedralContactClipping::findSeparatingAxis().

Variable Documentation

◆ gActualNbTests

int gActualNbTests = 0

◆ gActualSATPairTests

int gActualSATPairTests = 0
static

◆ gExpectedNbTests

int gExpectedNbTests = 0

This file was written by Erwin Coumans Separating axis rest based on work from Pierre Terdiman, see And contact clipping based on work from Simon Hobbs

Definition at line 25 of file btPolyhedralContactClipping.cpp.

Referenced by btPolyhedralContactClipping::findSeparatingAxis().

◆ gUseInternalObject

bool gUseInternalObject = true