RavEngine
Loading...
Searching...
No Matches
physx::PxGjkQueryExt::ConvexGeomSupport Struct Reference

Pre-made support mapping for any PhysX's convex geometry (sphere, capsule, box, convex mesh) More...

#include <PxGjkQueryExt.h>

Inheritance diagram for physx::PxGjkQueryExt::ConvexGeomSupport:
[legend]
Collaboration diagram for physx::PxGjkQueryExt::ConvexGeomSupport:
[legend]

Public Member Functions

 ConvexGeomSupport ()
 Default constructor.
 
 ConvexGeomSupport (const PxGeometry &geom, PxReal margin=0)
 Constructs a BoxSupport for a PxGeometry.
 
 ~ConvexGeomSupport ()
 Destructor.
 
bool isValid () const
 Returns false if ConvexGeomSupport was constructed from non-convex geometry.
 
virtual PxReal getMargin () const
 Return the user defined shape margin. Margin should be greater than or equal to 0.
 
virtual PxVec3 supportLocal (const PxVec3 &dir) const
 Return the farthest point on the user defined shape's core in given direction.
 

Detailed Description

Pre-made support mapping for any PhysX's convex geometry (sphere, capsule, box, convex mesh)

Member Function Documentation

◆ getMargin()

PxReal PxGjkQueryExt::ConvexGeomSupport::getMargin ( ) const
virtual

Return the user defined shape margin. Margin should be greater than or equal to 0.

Returns
Margin.

Implements physx::PxGjkQuery::Support.

◆ supportLocal()

PxVec3 PxGjkQueryExt::ConvexGeomSupport::supportLocal ( const PxVec3 &  dir) const
virtual

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

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

Implements physx::PxGjkQuery::Support.


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