ReactPhysics3D  v0.10.1
C++ Physics engine library
reactphysics3d::OverlappingPairs::ConvexOverlappingPair Struct Reference

An overlapping pair between two convex colliders. More...

#include <include/reactphysics3d/engine/OverlappingPairs.h>

Inheritance diagram for reactphysics3d::OverlappingPairs::ConvexOverlappingPair:
reactphysics3d::OverlappingPairs::OverlappingPair

Public Member Functions

 ConvexOverlappingPair (uint64 pairId, int32 broadPhaseId1, int32 broadPhaseId2, Entity collider1, Entity collider2, NarrowPhaseAlgorithmType narrowPhaseAlgorithmType, bool isEnabled)
 Constructor.
 
- Public Member Functions inherited from reactphysics3d::OverlappingPairs::OverlappingPair
 OverlappingPair (uint64 pairId, int32 broadPhaseId1, int32 broadPhaseId2, Entity collider1, Entity collider2, NarrowPhaseAlgorithmType narrowPhaseAlgorithmType, bool isEnabled)
 Constructor.
 
virtual ~OverlappingPair ()=default
 Destructor.
 

Public Attributes

LastFrameCollisionInfo lastFrameCollisionInfo
 Temporal coherence collision data for each overlapping collision shapes of this pair. More...
 
- Public Attributes inherited from reactphysics3d::OverlappingPairs::OverlappingPair
uint64 pairID
 Ids of the convex vs convex pairs.
 
int32 broadPhaseId1
 Broad-phase Id of the first shape.
 
int32 broadPhaseId2
 Broad-phase Id of the second shape.
 
Entity collider1
 Entity of the first collider of the convex vs convex pairs.
 
Entity collider2
 Entity of the second collider of the convex vs convex pairs.
 
bool needToTestOverlap
 True if we need to test if the convex vs convex overlapping pairs of shapes still overlap.
 
NarrowPhaseAlgorithmType narrowPhaseAlgorithmType
 Pointer to the narrow-phase algorithm.
 
bool collidingInPreviousFrame
 True if the colliders of the overlapping pair were colliding in the previous frame.
 
bool collidingInCurrentFrame
 True if the colliders of the overlapping pair are colliding in the current frame.
 
bool isEnabled
  True if at least one body of the pair is awake or not static
 

Detailed Description

An overlapping pair between two convex colliders.

Member Data Documentation

◆ lastFrameCollisionInfo

LastFrameCollisionInfo reactphysics3d::OverlappingPairs::ConvexOverlappingPair::lastFrameCollisionInfo

Temporal coherence collision data for each overlapping collision shapes of this pair.

Temporal coherence data store collision information about the last frame. If two convex shapes overlap, we have a single collision data but if one shape is concave, we might have collision data for several overlapping triangles.


The documentation for this struct was generated from the following file: