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

#include <CompoundShapeVisitors.h>

Public Member Functions

JPH_INLINE CollectTransformedShapesVisitor (const AABox &inBox, const CompoundShape *inShape, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale, const SubShapeIDCreator &inSubShapeIDCreator, TransformedShapeCollector &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.
 
JPH_INLINE UVec4 TestBounds (Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const
 Tests 4 bounding boxes against the query box, returns true for the ones that collide.
 
JPH_INLINE void VisitShape (const SubShape &inSubShape, uint32 inSubShapeIndex)
 Collect the transformed sub shapes for a single subshape.
 

Public Attributes

AABox mBox
 
OrientedBox mLocalBox
 
Vec3 mPositionCOM
 
Quat mRotation
 
Vec3 mScale
 
SubShapeIDCreator mSubShapeIDCreator
 
TransformedShapeCollectormCollector
 
uint mSubShapeBits
 
const ShapeFiltermShapeFilter
 

Constructor & Destructor Documentation

◆ CollectTransformedShapesVisitor()

JPH_INLINE CompoundShape::CollectTransformedShapesVisitor::CollectTransformedShapesVisitor ( const AABox inBox,
const CompoundShape inShape,
Vec3Arg  inPositionCOM,
QuatArg  inRotation,
Vec3Arg  inScale,
const SubShapeIDCreator inSubShapeIDCreator,
TransformedShapeCollector ioCollector,
const ShapeFilter inShapeFilter 
)
inline

Member Function Documentation

◆ ShouldAbort()

JPH_INLINE bool CompoundShape::CollectTransformedShapesVisitor::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::CollectTransformedShapesVisitor::TestBounds ( Vec4Arg  inBoundsMinX,
Vec4Arg  inBoundsMinY,
Vec4Arg  inBoundsMinZ,
Vec4Arg  inBoundsMaxX,
Vec4Arg  inBoundsMaxY,
Vec4Arg  inBoundsMaxZ 
) const
inline

Tests 4 bounding boxes against the query box, returns true for the ones that collide.

◆ VisitShape()

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

Collect the transformed sub shapes for a single subshape.

Member Data Documentation

◆ mBox

AABox CompoundShape::CollectTransformedShapesVisitor::mBox

◆ mCollector

TransformedShapeCollector& CompoundShape::CollectTransformedShapesVisitor::mCollector

◆ mLocalBox

OrientedBox CompoundShape::CollectTransformedShapesVisitor::mLocalBox

◆ mPositionCOM

Vec3 CompoundShape::CollectTransformedShapesVisitor::mPositionCOM

◆ mRotation

Quat CompoundShape::CollectTransformedShapesVisitor::mRotation

◆ mScale

Vec3 CompoundShape::CollectTransformedShapesVisitor::mScale

◆ mShapeFilter

const ShapeFilter& CompoundShape::CollectTransformedShapesVisitor::mShapeFilter

◆ mSubShapeBits

uint CompoundShape::CollectTransformedShapesVisitor::mSubShapeBits

◆ mSubShapeIDCreator

SubShapeIDCreator CompoundShape::CollectTransformedShapesVisitor::mSubShapeIDCreator

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