ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class is used to compute the narrow-phase collision detection between two sphere collision shapes. More...
#include <include/reactphysics3d/collision/narrowphase/SphereVsSphereAlgorithm.h>
Public Member Functions | |
SphereVsSphereAlgorithm ()=default | |
Constructor. | |
virtual | ~SphereVsSphereAlgorithm () override=default |
Destructor. | |
SphereVsSphereAlgorithm (const SphereVsSphereAlgorithm &algorithm)=delete | |
Deleted copy-constructor. | |
SphereVsSphereAlgorithm & | operator= (const SphereVsSphereAlgorithm &algorithm)=delete |
Deleted assignment operator. | |
bool | testCollision (NarrowPhaseInfoBatch &narrowPhaseInfoBatch, uint32 batchStartIndex, uint32 batchNbItems, MemoryAllocator &memoryAllocator) |
Compute a contact info if the two bounding volume collide. | |
Public Member Functions inherited from reactphysics3d::NarrowPhaseAlgorithm | |
NarrowPhaseAlgorithm ()=default | |
Constructor. | |
virtual | ~NarrowPhaseAlgorithm ()=default |
Destructor. | |
NarrowPhaseAlgorithm (const NarrowPhaseAlgorithm &algorithm)=delete | |
Deleted copy-constructor. | |
NarrowPhaseAlgorithm & | operator= (const NarrowPhaseAlgorithm &algorithm)=delete |
Deleted assignment operator. | |
This class is used to compute the narrow-phase collision detection between two sphere collision shapes.
This algorithm finds the contact point and contact normal between two spheres if they are colliding. This case is simple, we do not need to use GJK or SAT algorithm. We directly compute the contact points if any.