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

#include <CompoundShapeVisitors.h>

Public Member Functions

JPH_INLINE CollideShapeVsCompoundVisitor (const Shape *inShape1, const CompoundShape *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.
 
JPH_INLINE UVec4 TestBounds (Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const
 Tests the bounds of shape 1 vs 4 bounding boxes, returns true for the ones that intersect.
 
JPH_INLINE void VisitShape (const SubShape &inSubShape, uint32 inSubShapeIndex)
 Test the shape against a single subshape.
 

Public Attributes

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

Constructor & Destructor Documentation

◆ CollideShapeVsCompoundVisitor()

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

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

◆ VisitShape()

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

Test the shape against a single subshape.

Member Data Documentation

◆ mBoundsOf1InSpaceOf2

AABox CompoundShape::CollideShapeVsCompoundVisitor::mBoundsOf1InSpaceOf2

◆ mCollector

CollideShapeCollector& CompoundShape::CollideShapeVsCompoundVisitor::mCollector

◆ mCollideShapeSettings

const CollideShapeSettings& CompoundShape::CollideShapeVsCompoundVisitor::mCollideShapeSettings

◆ mScale1

Vec3 CompoundShape::CollideShapeVsCompoundVisitor::mScale1

◆ mScale2

Vec3 CompoundShape::CollideShapeVsCompoundVisitor::mScale2

◆ mShape1

const Shape* CompoundShape::CollideShapeVsCompoundVisitor::mShape1

◆ mShapeFilter

const ShapeFilter& CompoundShape::CollideShapeVsCompoundVisitor::mShapeFilter

◆ mSubShapeBits

uint CompoundShape::CollideShapeVsCompoundVisitor::mSubShapeBits

◆ mSubShapeIDCreator1

SubShapeIDCreator CompoundShape::CollideShapeVsCompoundVisitor::mSubShapeIDCreator1

◆ mSubShapeIDCreator2

SubShapeIDCreator CompoundShape::CollideShapeVsCompoundVisitor::mSubShapeIDCreator2

◆ mTransform1

Mat44 CompoundShape::CollideShapeVsCompoundVisitor::mTransform1

◆ mTransform2

Mat44 CompoundShape::CollideShapeVsCompoundVisitor::mTransform2

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