Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
CompoundShape::CollidePointVisitor Struct Reference

#include <CompoundShapeVisitors.h>

Public Member Functions

JPH_INLINE CollidePointVisitor (Vec3Arg inPoint, const CompoundShape *inShape, const SubShapeIDCreator &inSubShapeIDCreator, CollidePointCollector &ioCollector, const ShapeFilter &inShapeFilter)
 
JPH_INLINE bool ShouldAbort () const
 Returns true when collision detection should abort because it's not possible to find a better hit. More...
 
JPH_INLINE UVec4 TestBounds (Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const
 Test if point overlaps with 4 boxes, returns true for the ones that do. More...
 
JPH_INLINE void VisitShape (const SubShape &inSubShape, uint32 inSubShapeIndex)
 Test the point against a single subshape. More...
 

Public Attributes

Vec3 mPoint
 
SubShapeIDCreator mSubShapeIDCreator
 
CollidePointCollectormCollector
 
uint mSubShapeBits
 
const ShapeFiltermShapeFilter
 

Constructor & Destructor Documentation

◆ CollidePointVisitor()

JPH_INLINE CompoundShape::CollidePointVisitor::CollidePointVisitor ( Vec3Arg  inPoint,
const CompoundShape inShape,
const SubShapeIDCreator inSubShapeIDCreator,
CollidePointCollector ioCollector,
const ShapeFilter inShapeFilter 
)
inline

Member Function Documentation

◆ ShouldAbort()

JPH_INLINE bool CompoundShape::CollidePointVisitor::ShouldAbort ( ) const
inline

Returns true when collision detection should abort because it's not possible to find a better hit.

◆ TestBounds()

JPH_INLINE UVec4 CompoundShape::CollidePointVisitor::TestBounds ( Vec4Arg  inBoundsMinX,
Vec4Arg  inBoundsMinY,
Vec4Arg  inBoundsMinZ,
Vec4Arg  inBoundsMaxX,
Vec4Arg  inBoundsMaxY,
Vec4Arg  inBoundsMaxZ 
) const
inline

Test if point overlaps with 4 boxes, returns true for the ones that do.

◆ VisitShape()

JPH_INLINE void CompoundShape::CollidePointVisitor::VisitShape ( const SubShape inSubShape,
uint32  inSubShapeIndex 
)
inline

Test the point against a single subshape.

Member Data Documentation

◆ mCollector

CollidePointCollector& CompoundShape::CollidePointVisitor::mCollector

◆ mPoint

Vec3 CompoundShape::CollidePointVisitor::mPoint

◆ mShapeFilter

const ShapeFilter& CompoundShape::CollidePointVisitor::mShapeFilter

◆ mSubShapeBits

uint CompoundShape::CollidePointVisitor::mSubShapeBits

◆ mSubShapeIDCreator

SubShapeIDCreator CompoundShape::CollidePointVisitor::mSubShapeIDCreator

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