| PathEngine home | previous: | next: |
Loads collision preprocess from persistent storage.
void loadCollisionPreprocessFor(const 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 non fatal error will be emitted and preprocess will not be loaded.
| Documentation for PathEngine release 5.24 - Copyright © 2002-2010 PathEngine | next: |