Frictional Games Forum (read-only)
How to get the extent of a map - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html)
+--- Forum: Overture (https://www.frictionalgames.com/forum/forum-29.html)
+--- Thread: How to get the extent of a map (/thread-24761.html)



How to get the extent of a map - jorgeas80 - 03-05-2014

Hello,

I'd like to know how to get the dimensions of a map (in other words: the extent of the world that the map represents). I guess this is stored in the DAE file, and somehow is read by the engine, but I can't find it.

Closest thing I've found is the cWorld3D::mvWorldSize vector, but looks like always stores (0, 0, 0). Actually, that parameters is only set in cWorld2D class. Looks like is not even used in cWorld3D class.

Any clues?