Jolt Physics
A multi core friendly Game Physics Engine
|
#include <CompoundShapeVisitors.h>
Public Member Functions | |
JPH_INLINE | CastRayVisitor (const RayCast &inRay, const CompoundShape *inShape, const SubShapeIDCreator &inSubShapeIDCreator, RayCastResult &ioHit) |
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 RayCast & | mRay |
RayCastResult & | mHit |
SubShapeIDCreator | mSubShapeIDCreator |
uint | mSubShapeBits |
bool | mReturnValue = false |
|
inline |
|
inline |
Returns true when collision detection should abort because it's not possible to find a better hit.
|
inline |
Test ray against 4 bounding boxes and returns the distance where the ray enters the bounding box.
|
inline |
Test the ray against a single subshape.
RayCastResult& CompoundShape::CastRayVisitor::mHit |
RayInvDirection CompoundShape::CastRayVisitor::mInvDirection |
uint CompoundShape::CastRayVisitor::mSubShapeBits |
SubShapeIDCreator CompoundShape::CastRayVisitor::mSubShapeIDCreator |