RavEngine
Loading...
Searching...
No Matches
physx::PxCustomGeometry Class Reference

Custom geometry class. This class allows user to create custom geometries by providing a set of virtual callback functions. More...

#include <PxCustomGeometry.h>

Inheritance diagram for physx::PxCustomGeometry:
[legend]
Collaboration diagram for physx::PxCustomGeometry:
[legend]

Classes

struct  Callbacks
 Custom geometry callbacks structure. User should inherit this and implement all pure virtual functions. More...
 
struct  Type
 The type of a custom geometry. Allows to identify a particular kind of it. More...
 

Public Member Functions

PX_INLINE PxCustomGeometry ()
 Default constructor.
 
PX_INLINE PxCustomGeometry (Callbacks &_callbacks)
 Constructor.
 
PX_INLINE PxCustomGeometry (const PxCustomGeometry &that)
 Copy constructor.
 
PX_INLINE void operator= (const PxCustomGeometry &that)
 Assignment operator.
 
PX_INLINE bool isValid () const
 Returns true if the geometry is valid.
 
PX_INLINE Type getCustomType () const
 Returns the custom type of the custom geometry.
 
- Public Member Functions inherited from physx::PxGeometry
PX_CUDA_CALLABLE PX_FORCE_INLINE PxGeometryType::Enum getType () const
 Returns the type of the geometry.
 
PX_INLINE void operator= (const PxGeometry &that)
 Assignment operator.
 

Static Public Member Functions

static PX_PHYSX_COMMON_API PxU32 getUniqueID ()
 For internal use.
 

Public Attributes

Callbacks * callbacks
 A reference to the callbacks object.
 
- Public Attributes inherited from physx::PxGeometry
float mTypePadding
 

Additional Inherited Members

- Protected Member Functions inherited from physx::PxGeometry
PX_CUDA_CALLABLE PX_FORCE_INLINE PxGeometry (PxGeometryType::Enum type)
 
PX_CUDA_CALLABLE PX_FORCE_INLINE PxGeometry (const PxGeometry &that)
 
- Protected Attributes inherited from physx::PxGeometry
PxGeometryType::Enum mType
 

Detailed Description

Custom geometry class. This class allows user to create custom geometries by providing a set of virtual callback functions.

Constructor & Destructor Documentation

◆ PxCustomGeometry() [1/2]

PX_INLINE physx::PxCustomGeometry::PxCustomGeometry ( )
inline

Default constructor.

Creates an empty object with a NULL callbacks pointer.

◆ PxCustomGeometry() [2/2]

PX_INLINE physx::PxCustomGeometry::PxCustomGeometry ( const PxCustomGeometry &  that)
inline

Copy constructor.

Parameters
[in]thatOther object

Member Function Documentation

◆ isValid()

PX_INLINE bool physx::PxCustomGeometry::isValid ( ) const

Returns true if the geometry is valid.

Returns
True if the current settings are valid for shape creation.
See also
PxRigidActor::createShape, PxPhysics::createShape

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