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

Pre-made support mapping for a sphere. More...

#include <PxGjkQueryExt.h>

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

Public Member Functions

 SphereSupport ()
 Default constructor.
 
 SphereSupport (PxReal radius)
 Constructs a SphereSupport for a sphere radius.
 
 SphereSupport (const PxSphereGeometry &geom)
 Constructs a SphereSupport for a PxSphereGeometry.
 
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

PxReal radius
 

Detailed Description

Pre-made support mapping for a sphere.

Member Function Documentation

◆ getMargin()

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