RavEngine
Loading...
Searching...
No Matches
physx::PxGjkQuery::Support Struct Referenceabstract

Abstract interface for a user defined shape GJK mapping support. A user defined shape consists of a core shape and a margin. If the distance between two shapes' cores is equal to the sum of their margins, these shapes are considered touching. More...

#include <PxGjkQuery.h>

Inheritance diagram for physx::PxGjkQuery::Support:
[legend]

Public Member Functions

virtual PxReal getMargin () const =0
 Return the user defined shape margin. Margin should be greater than or equal to 0.
 
virtual PxVec3 supportLocal (const PxVec3 &dir) const =0
 Return the farthest point on the user defined shape's core in given direction.
 

Detailed Description

Abstract interface for a user defined shape GJK mapping support. A user defined shape consists of a core shape and a margin. If the distance between two shapes' cores is equal to the sum of their margins, these shapes are considered touching.

Member Function Documentation

◆ getMargin()

virtual PxReal physx::PxGjkQuery::Support::getMargin ( ) const
pure virtual

◆ supportLocal()

virtual PxVec3 physx::PxGjkQuery::Support::supportLocal ( const PxVec3 &  dir) const
pure virtual

Return the farthest point on the user defined shape's core in given direction.

Parameters
[in]dirDirection
Returns
Farthest point in given direction.

Implemented in CustomCylinder, CustomCone, physx::PxGjkQueryExt::SphereSupport, physx::PxGjkQueryExt::CapsuleSupport, physx::PxGjkQueryExt::BoxSupport, physx::PxGjkQueryExt::ConvexMeshSupport, physx::PxGjkQueryExt::ConvexGeomSupport, and TriangleSupport.


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