| PathEngine home | previous: | next: |
Loads collision preprocess from persistent storage.
void loadCollisionPreprocessFor(iShape* shape, const char* dataBuffer, tUnsigned32 bufferSize); |
| shape | The shape for which preprocess should be loaded. | ||
| dataBuffer | A byte buffer. This buffer is not retained after the call and can subsequently be safely deleted. | ||
| bufferSize | The size of the buffer pointed to by dataBuffer, in bytes. |
Collision preprocess must not already be present for this shape on this mesh.
The ground mesh and base circuits must be identical to the mesh for which the preprocess was originally saved.
The shape must be identical to the shape for which the preprocess was originally saved.
The buffer passed in must contain data previously saved out by
This method can be called where you would previously have called
The structure of PathEngine's collision preproces may be changed between releases.
In the case where the preprocess version is not compatible
a warning will be emitted and new preprocess will be generated with the same attributes as the original preprocess.
| Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEngine | next: |