Talk:ADT/v18

From wowdev
Jump to: navigation, search

SMLiquidInstance

liquid type liquid type name liquid object type use existstable where found
2 ocean 42 false default ocean traits
5 slow water 1708 true EK (30,48) liquid[100]
5 slow water 1709 false EK (30,48) liquid[46]
5 slow water 1709 true EK (30,48) liquid[136]
5 slow water 1710 true EK (30,48) default liquid
1 water 1727 true EK (31,59) liquid[5]
5 slow water 427 true EK (31,53) liquid[6]

Coordinate system

The comments about the coordinate system are borderline incomprehensible.

Wow's main coordinate system is really weird but understanding it is very important in order to correctly interpret the ADT files.

It's important to remember that:

  • Unlike most coordinate systems Z is used for the height, Y is used for the width and X is used for the depth.
  • Y is "reversed". The more you go to the right (if north is up), the more it decreases.
  • The center of the axis is in the center of the map.
  • The top-left corner of the map has X = 17066, Y = 17066
  • The bottom-right corner of the map has X = -17066, Y = -17066
  • The bottom-left corner of the map has X = -17006, Y = 17066
  • The top-right corner of the map has X = 17006, Y = -17066

Just to be absolutely clear, assuming you playing a character that is not flying or swimming and is facing north:

  • Forward = D3DXVECTOR3(1, 0, 0);
  • Right = D3DXVECTOR3(0, -1, 0);
  • Up = D3DXVECTOR3(0, 0, 1);

So this means:

  • Right-handed coordinate system
  • +x points north
  • +y points west
  • +z points up (into the air)

Is that correct? Is that easier to follow than what is currently written?