Blender V4.3
SphereTriangleDetector Struct Reference

sphere-triangle to match the btDiscreteCollisionDetectorInterface More...

#include <SphereTriangleDetector.h>

Inherits btDiscreteCollisionDetectorInterface.

Public Member Functions

virtual void getClosestPoints (const ClosestPointInput &input, Result &output, class btIDebugDraw *debugDraw, bool swapResults=false)
 
 SphereTriangleDetector (btSphereShape *sphere, btTriangleShape *triangle, btScalar contactBreakingThreshold)
 
virtual ~SphereTriangleDetector ()
 
bool collide (const btVector3 &sphereCenter, btVector3 &point, btVector3 &resultNormal, btScalar &depth, btScalar &timeOfImpact, btScalar contactBreakingThreshold)
 
- Public Member Functions inherited from btDiscreteCollisionDetectorInterface
virtual ~btDiscreteCollisionDetectorInterface ()
 

Detailed Description

sphere-triangle to match the btDiscreteCollisionDetectorInterface

Definition at line 25 of file SphereTriangleDetector.h.

Constructor & Destructor Documentation

◆ SphereTriangleDetector()

SphereTriangleDetector::SphereTriangleDetector ( btSphereShape * sphere,
btTriangleShape * triangle,
btScalar contactBreakingThreshold )

Definition at line 21 of file SphereTriangleDetector.cpp.

◆ ~SphereTriangleDetector()

virtual SphereTriangleDetector::~SphereTriangleDetector ( )
inlinevirtual

Definition at line 31 of file SphereTriangleDetector.h.

Member Function Documentation

◆ collide()

bool SphereTriangleDetector::collide ( const btVector3 & sphereCenter,
btVector3 & point,
btVector3 & resultNormal,
btScalar & depth,
btScalar & timeOfImpact,
btScalar contactBreakingThreshold )

Definition at line 96 of file SphereTriangleDetector.cpp.

References btSqrt(), cross(), distance(), SegmentSqrDistance(), and SIMD_EPSILON.

Referenced by getClosestPoints().

◆ getClosestPoints()

void SphereTriangleDetector::getClosestPoints ( const ClosestPointInput & input,
Result & output,
class btIDebugDraw * debugDraw,
bool swapResults = false )
virtual

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