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

#include <CompoundShapeVisitors.h>

Public Member Functions

JPH_INLINE CastShapeVisitor (const ShapeCast &inShapeCast, const ShapeCastSettings &inShapeCastSettings, const CompoundShape *inShape, Vec3Arg inScale, const ShapeFilter &inShapeFilter, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &inSubShapeIDCreator1, const SubShapeIDCreator &inSubShapeIDCreator2, CastShapeCollector &ioCollector)
 
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 Vec4 TestBounds (Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const
 Tests the shape cast against 4 bounding boxes, returns the distance along the shape cast where the shape first enters the bounding box. More...
 
JPH_INLINE void VisitShape (const SubShape &inSubShape, uint32 inSubShapeIndex)
 Test the cast shape against a single subshape. More...
 

Public Attributes

RayInvDirection mInvDirection
 
Vec3 mBoxCenter
 
Vec3 mBoxExtent
 
Vec3 mScale
 
const ShapeCastmShapeCast
 
const ShapeCastSettingsmShapeCastSettings
 
const ShapeFiltermShapeFilter
 
CastShapeCollectormCollector
 
Mat44 mCenterOfMassTransform2
 
SubShapeIDCreator mSubShapeIDCreator1
 
SubShapeIDCreator mSubShapeIDCreator2
 
uint mSubShapeBits
 

Constructor & Destructor Documentation

◆ CastShapeVisitor()

JPH_INLINE CompoundShape::CastShapeVisitor::CastShapeVisitor ( const ShapeCast inShapeCast,
const ShapeCastSettings inShapeCastSettings,
const CompoundShape inShape,
Vec3Arg  inScale,
const ShapeFilter inShapeFilter,
Mat44Arg  inCenterOfMassTransform2,
const SubShapeIDCreator inSubShapeIDCreator1,
const SubShapeIDCreator inSubShapeIDCreator2,
CastShapeCollector ioCollector 
)
inline

Member Function Documentation

◆ ShouldAbort()

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

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

◆ TestBounds()

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

Tests the shape cast against 4 bounding boxes, returns the distance along the shape cast where the shape first enters the bounding box.

◆ VisitShape()

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

Test the cast shape against a single subshape.

Member Data Documentation

◆ mBoxCenter

Vec3 CompoundShape::CastShapeVisitor::mBoxCenter

◆ mBoxExtent

Vec3 CompoundShape::CastShapeVisitor::mBoxExtent

◆ mCenterOfMassTransform2

Mat44 CompoundShape::CastShapeVisitor::mCenterOfMassTransform2

◆ mCollector

CastShapeCollector& CompoundShape::CastShapeVisitor::mCollector

◆ mInvDirection

RayInvDirection CompoundShape::CastShapeVisitor::mInvDirection

◆ mScale

Vec3 CompoundShape::CastShapeVisitor::mScale

◆ mShapeCast

const ShapeCast& CompoundShape::CastShapeVisitor::mShapeCast

◆ mShapeCastSettings

const ShapeCastSettings& CompoundShape::CastShapeVisitor::mShapeCastSettings

◆ mShapeFilter

const ShapeFilter& CompoundShape::CastShapeVisitor::mShapeFilter

◆ mSubShapeBits

uint CompoundShape::CastShapeVisitor::mSubShapeBits

◆ mSubShapeIDCreator1

SubShapeIDCreator CompoundShape::CastShapeVisitor::mSubShapeIDCreator1

◆ mSubShapeIDCreator2

SubShapeIDCreator CompoundShape::CastShapeVisitor::mSubShapeIDCreator2

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