Contents, API Reference, Interfaces, iMesh, shapeCanPathfind
A helper function for checking whether pathfinding queries are supported for a given shape (and collision context).
bool shapeCanPathfind(const iShape& shape, const iCollisionContext* context) const;
Check if pathfinding is supported for this shape.
The collision context that will be used for pathfinding.
Can be set to zero if no context will be used (as for the pathfinding queries themselves).
true, if pathfinding is supported for the shape, otherwise false.
Pathfinding queries can be called if either:
- A collision context is being used, and a 'preprocessed obstacle set' has been added to the context
- Pathfind preprocess has been generated (or loaded) for the base mesh
(Refer to Obstacle Management for more information about preprocessed obstacle sets.)
bool shapeCanPathfind(Shape shape, CollisionContext context);