Segment

From ZDoom Wiki
Revision as of 14:04, 18 March 2016 by MaxED (talk | contribs) (West and South angle values were swapped, also added some more info on other values)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
DoomWiki.org
For more information on this article, visit the Seg page on the Doom Wiki.

Segs are to sub-sectors what linedefs are to sectors; they make up the shape of the sub-sectors. The most relevant information on them can be found on the NODES page.


Specification

Bytes Data type Description
0-1 Unsigned short Beginning vertex number
2-3 Unsigned short Ending vertex number
4-5 Signed short Angle: 0x0000 = East, 0x4000=North, 0x8000=West, 0xC000=South
6-7 Unsigned short Linedef number
8-9 Signed short Direction: 0 (same as linedef) or 1 (opposite of linedef)
10-11 Signed short Offset: distance along the linedef to the start of the seg