PathEngine home previous: iMesh::heightAtPositionWithPrecision()next: iMesh::loadPath()
Contents, API Reference, Interfaces, iMesh, loadCollisionPreprocessFor

iMesh::loadCollisionPreprocessFor()

Description

Loads collision preprocess from persistent storage.

Syntax

void loadCollisionPreprocessFor(const iShape* shape, const char* dataBuffer, tUnsigned32 bufferSize);

Parameters

shape The shape for which preprocess should be loaded.
dataBufferA byte buffer. This buffer is not retained after the call and can subsequently be safely deleted.
bufferSizeThe size of the buffer pointed to by dataBuffer, in bytes.

Requirements

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.

Remarks

The buffer passed in must contain data previously saved out by iMesh::saveCollisionPreprocessFor().

This method can be called where you would previously have called iMesh::generateCollisionPreprocessFor(), to save time generating preprocess.

The structure of PathEngine's collision preproces may be changed between releases.
iPathEngine::collisionPreprocessVersionIsCompatible() can be used to check whether preprocess saved out of an older release can be loaded into the current release.
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 PathEnginenext: iMesh::loadPath()