Game Development Community

TGB's unit of measure

by Stephen Triche · in Torque Game Builder · 06/20/2006 (8:06 am) · 3 replies

Is there a way to change TGB's unit of measurement?

For example, at the moment if I make a 1024x768 object, it refers to it as being 100 by 75. This equates to one TGB unit equating to about 10.24 pixels. Is there a specific reason for these units being wierd like this? Is there a way to change the unit of measurement to be in pixels?

#1
06/20/2006 (8:09 am)
The 100 x 75 is the camera size. You can easily change this. I tend to set it to 0 0 800 600 and also set the game to 800x600.

That way there is a direct 1:1 mapping between pixel sizes and world sizes.
#2
06/20/2006 (8:10 am)
You can read more about how the coordinate systems in TGB work here:
http://tdn.garagegames.com/wiki/TGB/Reference:_Glossary#Coordinate_Systems
#3
06/20/2006 (8:27 am)
Ah, it makes total sense now. Thanks guys.