RavEngine
Loading...
Searching...
No Matches
TriangleSupport Struct Reference
Inheritance diagram for TriangleSupport:
[legend]
Collaboration diagram for TriangleSupport:
[legend]

Public Member Functions

 TriangleSupport (const PxVec3 &_v0, const PxVec3 &_v1, const PxVec3 &_v2, PxReal _margin)
 
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

PxVec3 v0
 
PxVec3 v1
 
PxVec3 v2
 
PxReal margin
 

Member Function Documentation

◆ getMargin()

virtual PxReal TriangleSupport::getMargin ( ) const
inlinevirtual

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

Returns
Margin.

Implements physx::PxGjkQuery::Support.

◆ supportLocal()

virtual PxVec3 TriangleSupport::supportLocal ( const PxVec3 &  dir) const
inlinevirtual

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 file: