| PathEngine home | previous: | next: |
Tests whether agents with the given collision shape can move along the specified line without being obstructed.
bool testLineCollision(iShape* shape, const iCollisionContext* context, const cPosition& start, const cPosition& end) 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 a value of zero for this argument. | ||
| start | The start of the line. This position must be a valid position on this mesh | ||
| end | The end of the line. This position must be a valid position on this mesh |
Requires that collision preprocess has been generated on this mesh for the collision shape specified.
(But see also
This method tests collision for a line between two fully specified positions.
In many situations the 'cell' at a target position is not known.
In this case, use
See
| Documentation for PathEngine release 5.17 - Copyright © 2002-2008 PathEngine | next: |