PathEngine home previous: iMesh::testLineCollision_XY()next: Interface iAgent
Contents, API Reference, Interfaces, iMesh, testPointCollision



Tests whether the specified position is obstructed for agents with the given collision shape.


bool testPointCollision(const iShape& shape, const iCollisionContext* context, const cPosition& position) const;


shape The collision shape to use for this query.
context The state of dynamic collision that will apply for this query.
An empty context can be specified by passing nullptr for this argument.
position The position to be tested. This position must be a valid position on this mesh


Requires that unobstructed space has been generated on this mesh for the collision shape specified.
(But see also Performing Collision Queries without Preprocess.)

Return Value

true if the specified position would be obstructed for an agent with the specified and with the specified state of dynamic collision, otherwise false.


See The PathEngine Movement Model for details about PathEngine collision.

C# Mapping

bool testPointCollision(Shape shape, CollisionContext context, PathEngine.Position position);

Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: Interface iAgent