Function RVOObstacleCache.TraceContours

TraceContours (refUnsafeSpan<ObstacleSegment> obstaclesSpan, refNativeMovementPlane movementPlane, int obstacleId, UnmanagedObstacle* outputObstacles, refSlabAllocator<float3> verticesAllocator, refSlabAllocator<ObstacleVertexGroup> obstaclesAllocator, refSpinLock spinLock, bool simplifyObstacles)

Trace contours generated by CollectContours.

Internal Static
unsafe void TraceContours (

refUnsafeSpan<ObstacleSegment>

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).

refNativeMovementPlane

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.

UnmanagedObstacle*

outputObstacles

Array to write the obstacle to.

refSlabAllocator<float3>

verticesAllocator

Allocator to use for the vertices of the obstacle.

refSlabAllocator<ObstacleVertexGroup>

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.