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

#include <CompoundShapeVisitors.h>

Public Member Functions

JPH_INLINE CastRayVisitorCollector (const RayCast &inRay, const RayCastSettings &inRayCastSettings, const CompoundShape *inShape, const SubShapeIDCreator &inSubShapeIDCreator, CastRayCollector &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 Vec4 TestBounds (Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const
 Test ray against 4 bounding boxes and returns the distance where the ray enters the bounding box.
 
JPH_INLINE void VisitShape (const SubShape &inSubShape, uint32 inSubShapeIndex)
 Test the ray against a single subshape.
 

Public Attributes

RayInvDirection mInvDirection
 
const RayCastmRay
 
CastRayCollectormCollector
 
SubShapeIDCreator mSubShapeIDCreator
 
uint mSubShapeBits
 
RayCastSettings mRayCastSettings
 
const ShapeFiltermShapeFilter
 

Constructor & Destructor Documentation

◆ CastRayVisitorCollector()

JPH_INLINE CompoundShape::CastRayVisitorCollector::CastRayVisitorCollector ( const RayCast & inRay,
const RayCastSettings & inRayCastSettings,
const CompoundShape * inShape,
const SubShapeIDCreator & inSubShapeIDCreator,
CastRayCollector & ioCollector,
const ShapeFilter & inShapeFilter )
inline

Member Function Documentation

◆ ShouldAbort()

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

Test ray against 4 bounding boxes and returns the distance where the ray enters the bounding box.

◆ VisitShape()

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

Test the ray against a single subshape.

Member Data Documentation

◆ mCollector

CastRayCollector& CompoundShape::CastRayVisitorCollector::mCollector

◆ mInvDirection

RayInvDirection CompoundShape::CastRayVisitorCollector::mInvDirection

◆ mRay

const RayCast& CompoundShape::CastRayVisitorCollector::mRay

◆ mRayCastSettings

RayCastSettings CompoundShape::CastRayVisitorCollector::mRayCastSettings

◆ mShapeFilter

const ShapeFilter& CompoundShape::CastRayVisitorCollector::mShapeFilter

◆ mSubShapeBits

uint CompoundShape::CastRayVisitorCollector::mSubShapeBits

◆ mSubShapeIDCreator

SubShapeIDCreator CompoundShape::CastRayVisitorCollector::mSubShapeIDCreator

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