PxPhysicsInsertionCallback Class Referenceabstract

Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh directly into PxPhysics without the need to store the cooking results into a stream. More...

#include <PxPhysicsInsertionCallback.h>

Public Member Functions

 PxPhysicsInsertionCallback ()
 
virtual PxBasebuildObjectFromData (PxConcreteType::Enum type, void *data)=0
 Builds object (TriangleMesh, HeightfieldMesh or ConvexMesh) from given data in PxPhysics. More...
 

Protected Member Functions

virtual ~PxPhysicsInsertionCallback ()
 

Detailed Description

Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh directly into PxPhysics without the need to store the cooking results into a stream.

Using this is advised only if real-time cooking is required; using "offline" cooking and streams is otherwise preferred.

The default PxPhysicsInsertionCallback implementation must be used. The PxPhysics default callback can be obtained using the PxPhysics::getPhysicsInsertionCallback().

See also
PxCooking PxPhysics

Constructor & Destructor Documentation

◆ PxPhysicsInsertionCallback()

PxPhysicsInsertionCallback::PxPhysicsInsertionCallback ( )
inline

◆ ~PxPhysicsInsertionCallback()

virtual PxPhysicsInsertionCallback::~PxPhysicsInsertionCallback ( )
inlineprotectedvirtual

Member Function Documentation

◆ buildObjectFromData()

virtual PxBase* PxPhysicsInsertionCallback::buildObjectFromData ( PxConcreteType::Enum  type,
void *  data 
)
pure virtual

Builds object (TriangleMesh, HeightfieldMesh or ConvexMesh) from given data in PxPhysics.

Parameters
typeObject type to build.
dataObject data
Returns
PxBase Created object in PxPhysics.

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