PathEngine home | previous: | next: |
Tests whether agents with the given collision shape can move along the specified line without being obstructed. This version does not require the end of the line to be fully specified.
bool testLineCollision_XY(const iShape& shape, const iCollisionContext* context, const cPosition& start, int32_t x, int32_t y, int32_t& cell) 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. | ||
start | The start of the line. This position must be a valid position on this mesh | ||
x | X coordinate for the end of the line. | ||
y | Y coordinate for the end of the line. | ||
cell | If there is no collision then this value will be set to the cell at the end of the line. |
Requires that unobstructed space has been generated on this mesh for the collision shape specified.
(But see also
See
bool testLineCollision_XY(Shape shape, CollisionContext context, PathEngine.Position start, int x, int y, out int cell); |
Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEngine | next: |