PathEngine home previous: iMesh::shapeCanCollide()next: iMesh::shapeHasCombinedUnobstructedSpace()
Contents, API Reference, Interfaces, iMesh, shapeCanPathfind

iMesh::shapeCanPathfind()

Description

A helper function for checking whether pathfinding queries are supported for a given shape (and collision context).

Syntax

bool shapeCanPathfind(const iShape& shape, const iCollisionContext* context) const;

Parameters

shape Check if pathfinding is supported for this shape.
context 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).

Return Value

true, if pathfinding is supported for the shape, otherwise false.

Remarks

Pathfinding queries can be called if either:

(Refer to Obstacle Management for more information about preprocessed obstacle sets.)

See Also

iMesh::generatePathfindPreprocessFor(), iMesh::shapeCanCollide()

C# Mapping

bool shapeCanPathfind(Shape shape, CollisionContext context);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iMesh::shapeHasCombinedUnobstructedSpace()