|
RavEngine
|
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>
Public Member Functions | |
| virtual PxBase * | buildObjectFromData (PxConcreteType::Enum type, void *data)=0 |
| Builds object (TriangleMesh, Heightfield, ConvexMesh or BVH) from given data in PxPhysics. | |
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().
|
pure virtual |
Builds object (TriangleMesh, Heightfield, ConvexMesh or BVH) from given data in PxPhysics.
| type | Object type to build. |
| data | Object data |
Implemented in physx::NpPhysicsInsertionCallback.