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

Pre-made support mapping for a convex mesh. More...

#include <PxGjkQueryExt.h>

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

Public Member Functions

 ConvexMeshSupport ()
 Default constructor.
 
 ConvexMeshSupport (const PxConvexMesh &convexMesh, const PxVec3 &scale=PxVec3(1), const PxQuat &scaleRotation=PxQuat(PxIdentity), PxReal margin=0)
 Constructs a BoxSupport for a PxConvexMesh.
 
 ConvexMeshSupport (const PxConvexMeshGeometry &convexMesh, PxReal margin=0)
 Constructs a BoxSupport for a PxConvexMeshGeometry.
 
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.
 

Public Attributes

const PxConvexMesh * convexMesh
 
PxVec3 scale
 
PxQuat scaleRotation
 
PxReal margin
 

Detailed Description

Pre-made support mapping for a convex mesh.

Member Function Documentation

◆ getMargin()

PxReal PxGjkQueryExt::ConvexMeshSupport::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::ConvexMeshSupport::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: