Recast Navigation
Navigation-mesh Toolset for Games
rcCompactSpan Struct Reference

Represents a span of unobstructed space within a compact heightfield. More...

#include <Recast.h>

Public Attributes

unsigned short y
 The lower extent of the span. (Measured from the heightfield's base.) More...
 
unsigned short reg
 The id of the region the span belongs to. (Or zero if not in a region.) More...
 
unsigned int con: 24
 Packed neighbor connection data. More...
 
unsigned int h: 8
 The height of the span. (Measured from y.) More...
 

Description

Represents a span of unobstructed space within a compact heightfield.

The span represents open, unobstructed space within a compact heightfield column. See the rcCompactHeightfield documentation for an example of iterating spans and searching span connections.

Useful instances of this type can only by obtained from a rcCompactHeightfield object.

See also
rcCompactHeightfield

Member Data Documentation

◆ con

unsigned int rcCompactSpan::con

Packed neighbor connection data.

◆ h

unsigned int rcCompactSpan::h

The height of the span. (Measured from y.)

◆ reg

unsigned short rcCompactSpan::reg

The id of the region the span belongs to. (Or zero if not in a region.)

◆ y

unsigned short rcCompactSpan::y

The lower extent of the span. (Measured from the heightfield's base.)


The documentation for this struct was generated from the following file: