User Tools

Site Tools


cobjects:cway2_bin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cobjects:cway2_bin [2011-07-21 21:53]
edheldil
cobjects:cway2_bin [2011-07-21 21:55] (current)
edheldil
Line 1: Line 1:
 +==== CWAY2_bin ====
 +
 +These structures are used in [[formats:​WAY]] files to create links between nodes.
 +
 +^     ​Offset ^  Size ^ Type     ^ Description ​ ^
 +|        0x00 |     4 | CID     | 0x41d80000 - Class ID 1 |
 +|        0x04 |     4 | CID     | 0x42840000 - Class ID 2 |
 +|        0x08 |     4 | [[cobjects:​DynamicProperties]] | Unused, always 0 |
 +|        0x0C |     4 | Int     | Unknown. Usually 3 |
 +|        0x10 |     4 | Int     | Unknown. Usually 0 |
 +|        0x14 |     4 | Float32 | Distance between nodes. Usually between 20-40, often 0 |
 +|        0x18 |     4 | Float32 | Angle from Node0 to Node1 in radians, 0-2*PI.\\ Unlike atan2() identical nodes have angle PI instead of 0.0.\\ Also the precision is only 0.001 Rad. |
 +|        0x1C |     4 | Int     ​|Node0 - index to the list of [[CWAY1_bin]] nodes |
 +|        0x20 |     4 | Int     ​|Node1 - index to the list of [[CWAY1_bin]] nodes. Sometimes equals Node0 |
  
cobjects/cway2_bin.txt ยท Last modified: 2011-07-21 21:55 by edheldil