| PathEngine home | previous: | next: |
Generates preprocess to support collision queries relating to movement for the specified shape on this mesh.
void generateCollisionPreprocessFor(const iShape* shape, const char *const* attributes); |
| shape | The shape for which preprocess should be generated. | ||
| attributes |
This parameter enables attributes to be passed in to control aspects of the preprocess. See If you dont need to pass any attributes just pass zero in for this parameter. |
Collision preprocess must not already be present for this shape on this mesh.
Preprocess must be generated in order to make collision or pathfinding queries
about movement for a given shape.
This method controls generation of collision related preprocess for movement of the specified shape
on this mesh.
The collision preprocess includes a minkowski expansion of the external edges of this mesh by that shape,
and enables point and line collision queries, but does not enable pathfinding queries.
If a method in the PathEngine API requires preprocess,
then this is specified in the method documention.
The method documentation also species which type of preprocess is required.
NOTE: Preprocess does not need to be generated for a shape in order for that shape
to be placed as an obstruction.
Obstruction shapes can also be moved by removing and replacing at a new position without
preprocess being required.
You can avoid the overhead of generating collision preprocess at runtime by using
Base mesh preprocess generation operations are non-blocking between shapes (from release 5.20),
i.e. preprocess can be generated for multiple shapes simultaneously.
(See
Refer to
| Documentation for PathEngine release 5.24 - Copyright © 2002-2010 PathEngine | next: |