RavEngine
Loading...
Searching...
No Matches
physx::PxInsertionCallback Class Referenceabstract

Callback interface that permits TriangleMesh, Heightfield, ConvexMesh or BVH to be used directly without the need to store the cooking results into a stream. More...

#include <PxInsertionCallback.h>

Inheritance diagram for physx::PxInsertionCallback:
[legend]

Public Member Functions

virtual PxBase * buildObjectFromData (PxConcreteType::Enum type, void *data)=0
 Builds object (TriangleMesh, Heightfield, ConvexMesh or BVH) from given data in PxPhysics.

 

Detailed Description

Callback interface that permits TriangleMesh, Heightfield, ConvexMesh or BVH to be used directly 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 PxInsertionCallback implementations must be used. The PxPhysics default callback can be obtained using the PxPhysics::getPhysicsInsertionCallback(). The PxCooking default callback can be obtained using the PxCooking::getStandaloneInsertionCallback().

See also
PxCooking PxPhysics

Member Function Documentation

◆ buildObjectFromData()

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

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

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

Implemented in physx::NpPhysicsInsertionCallback.


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