ReactPhysics3D  v0.10.1
C++ Physics engine library
reactphysics3d::CapsuleVsCapsuleAlgorithm Class Reference

This class is used to compute the narrow-phase collision detection between two capsules collision shapes. More...

#include <include/reactphysics3d/collision/narrowphase/CapsuleVsCapsuleAlgorithm.h>

Inheritance diagram for reactphysics3d::CapsuleVsCapsuleAlgorithm:
reactphysics3d::NarrowPhaseAlgorithm

Public Member Functions

 CapsuleVsCapsuleAlgorithm ()=default
 Constructor.
 
virtual ~CapsuleVsCapsuleAlgorithm () override=default
 Destructor.
 
 CapsuleVsCapsuleAlgorithm (const CapsuleVsCapsuleAlgorithm &algorithm)=delete
 Deleted copy-constructor.
 
CapsuleVsCapsuleAlgorithmoperator= (const CapsuleVsCapsuleAlgorithm &algorithm)=delete
 Deleted assignment operator.
 
bool testCollision (NarrowPhaseInfoBatch &narrowPhaseInfoBatch, uint32 batchStartIndex, uint32 batchNbItems, MemoryAllocator &memoryAllocator)
 Compute the narrow-phase collision detection between two capsules.
 
- Public Member Functions inherited from reactphysics3d::NarrowPhaseAlgorithm
 NarrowPhaseAlgorithm ()=default
 Constructor.
 
virtual ~NarrowPhaseAlgorithm ()=default
 Destructor.
 
 NarrowPhaseAlgorithm (const NarrowPhaseAlgorithm &algorithm)=delete
 Deleted copy-constructor.
 
NarrowPhaseAlgorithmoperator= (const NarrowPhaseAlgorithm &algorithm)=delete
 Deleted assignment operator.
 

Detailed Description

This class is used to compute the narrow-phase collision detection between two capsules collision shapes.

We do not use the GJK or SAT algorithm here. We directly compute the contact points and contact normal. This is based on the "Robust Contact Creation for Physics Simulation" presentation by Dirk Gregorius.


The documentation for this class was generated from the following files: