RavEngine
Loading...
Searching...
No Matches
physx::PxGjkQueryExt Class Reference

Pre-made support mapping for built-in convex geometry types. More...

#include <PxGjkQueryExt.h>

Classes

struct  BoxSupport
 Pre-made support mapping for a box. More...
 
struct  CapsuleSupport
 Pre-made support mapping for a capsule. More...
 
struct  ConvexGeomSupport
 Pre-made support mapping for any PhysX's convex geometry (sphere, capsule, box, convex mesh) More...
 
struct  ConvexMeshSupport
 Pre-made support mapping for a convex mesh. More...
 
struct  SphereSupport
 Pre-made support mapping for a sphere. More...
 

Static Public Member Functions

static bool generateContacts (const PxGjkQuery::Support &a, const PxGjkQuery::Support &b, const PxTransform &poseA, const PxTransform &poseB, PxReal contactDistance, PxReal toleranceLength, PxContactBuffer &contactBuffer)
 Generates a contact point between two shapes using GJK-EPA algorithm.
 

Detailed Description

Pre-made support mapping for built-in convex geometry types.

Member Function Documentation

◆ generateContacts()

bool PxGjkQueryExt::generateContacts ( const PxGjkQuery::Support &  a,
const PxGjkQuery::Support &  b,
const PxTransform &  poseA,
const PxTransform &  poseB,
PxReal  contactDistance,
PxReal  toleranceLength,
PxContactBuffer &  contactBuffer 
)
static

Generates a contact point between two shapes using GJK-EPA algorithm.

Parameters
[in]aShape A support mapping
[in]bShape B support mapping
[in]poseAShape A transformation
[in]poseBShape B transformation
[in]contactDistanceThe distance at which contacts begin to be generated between the shapes
[in]toleranceLengthThe toleranceLength. Used for scaling distance-based thresholds internally to produce appropriate results given simulations in different units
[out]contactBufferA buffer to store the contact
Returns
True if there is a contact.

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