PathEngine home | previous: | next: |
Generates a random position on the region of a mesh local to the specified centre position.
cPosition generateRandomPositionLocally(const cPosition& centre, int32_t range) const; |
centre | Specifies the centre of the region in which to generate a random position. | ||
range |
Specifies the size of the region in which to generate a random position. Must be greater than zero. |
A valid, randomly generated position on this mesh and with x and y components within +/- range of centre.
PathEngine.Position generateRandomPositionLocally(PathEngine.Position centre, int range); |
Position generateRandomPositionLocally(Position centre, int range); |
Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEngine | next: |