Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
CompoundShape::GetIntersectingSubShapesVisitor< BoxType > Struct Template Reference

#include <CompoundShapeVisitors.h>

Public Member Functions

JPH_INLINE GetIntersectingSubShapesVisitor (const BoxType &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices)
 
JPH_INLINE bool ShouldAbort () const
 Returns true when collision detection should abort because the buffer is full.
 
JPH_INLINE UVec4 TestBounds (Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const
 Tests the box vs 4 bounding boxes, returns true for the ones that intersect.
 
JPH_INLINE void VisitShape (const SubShape &inSubShape, uint32 inSubShapeIndex)
 Records a hit.
 
JPH_INLINE int GetNumResults () const
 Get the number of indices that were found.
 

Constructor & Destructor Documentation

◆ GetIntersectingSubShapesVisitor()

template<class BoxType >
JPH_INLINE CompoundShape::GetIntersectingSubShapesVisitor< BoxType >::GetIntersectingSubShapesVisitor ( const BoxType & inBox,
uint * outSubShapeIndices,
int inMaxSubShapeIndices )
inline

Member Function Documentation

◆ GetNumResults()

template<class BoxType >
JPH_INLINE int CompoundShape::GetIntersectingSubShapesVisitor< BoxType >::GetNumResults ( ) const
inline

Get the number of indices that were found.

◆ ShouldAbort()

Returns true when collision detection should abort because the buffer is full.

◆ TestBounds()

template<class BoxType >
JPH_INLINE UVec4 CompoundShape::GetIntersectingSubShapesVisitor< BoxType >::TestBounds ( Vec4Arg inBoundsMinX,
Vec4Arg inBoundsMinY,
Vec4Arg inBoundsMinZ,
Vec4Arg inBoundsMaxX,
Vec4Arg inBoundsMaxY,
Vec4Arg inBoundsMaxZ ) const
inline

Tests the box vs 4 bounding boxes, returns true for the ones that intersect.

◆ VisitShape()

template<class BoxType >
JPH_INLINE void CompoundShape::GetIntersectingSubShapesVisitor< BoxType >::VisitShape ( const SubShape & inSubShape,
uint32 inSubShapeIndex )
inline

Records a hit.


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