Function RVOObstacleCache.TraceContours
Trace contours generated by CollectContours.
unsafe void TraceContours (
obstaclesSpan | Obstacle segments, typically the borders of the navmesh. In no particular order. Each edge must be oriented the same way (e.g. all clockwise, or all counter-clockwise around the obstacles). |
|
movementPlane | The movement plane used for simplification. The up direction will be treated as less important for purposes of simplification. |
|
int | obstacleId | The ID of the obstacle to write into the outputObstacles array. |
outputObstacles | Array to write the obstacle to. |
|
refSlabAllocator<float3> | verticesAllocator | Allocator to use for the vertices of the obstacle. |
obstaclesAllocator | Allocator to use for the obstacle metadata. |
|
refSpinLock | spinLock | Lock to use when allocating from the allocators. |
bool | simplifyObstacles | If true, the obstacle will be simplified. This means that colinear vertices (when projected onto the movement plane) will be removed. |
Trace contours generated by CollectContours.