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

#include <CompoundShapeVisitors.h>

Public Member Functions

JPH_INLINE CollideCompoundVsShapeVisitor (const CompoundShape *inShape1, const Shape *inShape2, Vec3Arg inScale1, Vec3Arg inScale2, Mat44Arg inCenterOfMassTransform1, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, const SubShapeIDCreator &inSubShapeIDCreator2, const CollideShapeSettings &inCollideShapeSettings, CollideShapeCollector &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
 Tests the bounds of shape 2 vs 4 bounding boxes, returns true for the ones that intersect. More...
 
JPH_INLINE void VisitShape (const SubShape &inSubShape, uint32 inSubShapeIndex)
 Test the shape against a single subshape. More...
 

Public Attributes

const CollideShapeSettingsmCollideShapeSettings
 
CollideShapeCollectormCollector
 
const ShapemShape2
 
Vec3 mScale1
 
Vec3 mScale2
 
Mat44 mTransform1
 
Mat44 mTransform2
 
AABox mBoundsOf2InSpaceOf1
 
SubShapeIDCreator mSubShapeIDCreator1
 
SubShapeIDCreator mSubShapeIDCreator2
 
uint mSubShapeBits
 
const ShapeFiltermShapeFilter
 

Constructor & Destructor Documentation

◆ CollideCompoundVsShapeVisitor()

JPH_INLINE CompoundShape::CollideCompoundVsShapeVisitor::CollideCompoundVsShapeVisitor ( const CompoundShape inShape1,
const Shape inShape2,
Vec3Arg  inScale1,
Vec3Arg  inScale2,
Mat44Arg  inCenterOfMassTransform1,
Mat44Arg  inCenterOfMassTransform2,
const SubShapeIDCreator inSubShapeIDCreator1,
const SubShapeIDCreator inSubShapeIDCreator2,
const CollideShapeSettings inCollideShapeSettings,
CollideShapeCollector ioCollector,
const ShapeFilter inShapeFilter 
)
inline

Member Function Documentation

◆ ShouldAbort()

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

Tests the bounds of shape 2 vs 4 bounding boxes, returns true for the ones that intersect.

◆ VisitShape()

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

Test the shape against a single subshape.

Member Data Documentation

◆ mBoundsOf2InSpaceOf1

AABox CompoundShape::CollideCompoundVsShapeVisitor::mBoundsOf2InSpaceOf1

◆ mCollector

CollideShapeCollector& CompoundShape::CollideCompoundVsShapeVisitor::mCollector

◆ mCollideShapeSettings

const CollideShapeSettings& CompoundShape::CollideCompoundVsShapeVisitor::mCollideShapeSettings

◆ mScale1

Vec3 CompoundShape::CollideCompoundVsShapeVisitor::mScale1

◆ mScale2

Vec3 CompoundShape::CollideCompoundVsShapeVisitor::mScale2

◆ mShape2

const Shape* CompoundShape::CollideCompoundVsShapeVisitor::mShape2

◆ mShapeFilter

const ShapeFilter& CompoundShape::CollideCompoundVsShapeVisitor::mShapeFilter

◆ mSubShapeBits

uint CompoundShape::CollideCompoundVsShapeVisitor::mSubShapeBits

◆ mSubShapeIDCreator1

SubShapeIDCreator CompoundShape::CollideCompoundVsShapeVisitor::mSubShapeIDCreator1

◆ mSubShapeIDCreator2

SubShapeIDCreator CompoundShape::CollideCompoundVsShapeVisitor::mSubShapeIDCreator2

◆ mTransform1

Mat44 CompoundShape::CollideCompoundVsShapeVisitor::mTransform1

◆ mTransform2

Mat44 CompoundShape::CollideCompoundVsShapeVisitor::mTransform2

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