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>
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
◆ PxPhysicsInsertionCallback()
PxPhysicsInsertionCallback::PxPhysicsInsertionCallback |
( |
| ) |
|
|
inline |
◆ ~PxPhysicsInsertionCallback()
virtual PxPhysicsInsertionCallback::~PxPhysicsInsertionCallback |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ buildObjectFromData()
Builds object (TriangleMesh, HeightfieldMesh or ConvexMesh) from given data in PxPhysics.
- Parameters
-
type | Object type to build. |
data | Object data |
- Returns
- PxBase Created object in PxPhysics.
The documentation for this class was generated from the following file: