PathEngine home previous: iMesh::positionInSectionNear3DPoint()next: iMesh::positionIsValid()
Contents, API Reference, Interfaces, iMesh, positionIsBlockedBySurfaceTypeTraverseCosts

iMesh::positionIsBlockedBySurfaceTypeTraverseCosts()

Description

Checks whether a position has been marked as blocked through the surface type traverse costs mechanism.

Syntax

bool positionIsBlockedBySurfaceTypeTraverseCosts(const iCollisionContext* context, const cPosition& position) const;

Parameters

context If supplied then dynamic costs in this context will be checked in addition to any burnt in costs.
position The position to be tested. This position must be a valid position on this mesh

Return Value

Returns true if the surface type at the given position has been assigned a cost value of -1.f (blocked), either in burnt in surface type traverse costs, or in dynamic surface type traverse costs if a context is supplied, otherwise false.

Remarks

This method is provided as an early out for situations where blocking traverse cost values are being used, and where these blocking values make a pathfinding goal position effectively unreachable.

Refer to Representing Regions with Cost to Traverse for more detail about surface type traverse costs.

C# Mapping

bool positionIsBlockedBySurfaceTypeTraverseCosts(CollisionContext context, PathEngine.Position position);

Java Mapping

boolean positionIsBlockedBySurfaceTypeTraverseCosts(CollisionContext context, Position position);

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