TGB object size vs sprite pixel dimensions
by Chris Hoopes · in Torque Game Builder · 12/21/2012 (4:25 pm) · 1 replies
I've been trying to wrap my head around this and figure out if there's a standard or a base for the "size" of objects in the Torque Game Builder. For example, if I add a sprite with a pixel resolution of 100x100 its default size in the editor is 12.5x12.5. I guess that means that every abstract "unit" of measurement in TGB equates to 8 pixels of screen real estate. Or am I thinking about this wrong? Are these units of measurement the same as what is returned if (for example) I call the VectorDist function on two objects?
Also, is there a way in the TGB interface to set something back to its default size? Say for example a sprite was accidentally blown up out of proportion, can I reset this back to what it was originally?
Thanks for your help.
Also, is there a way in the TGB interface to set something back to its default size? Say for example a sprite was accidentally blown up out of proportion, can I reset this back to what it was originally?
Thanks for your help.
About the author
Torque Owner Rpahut
Design resolution = 'size' of a window in pixels, camera size = corresponding size in virtual units. Camera is set to 100x75 by default, with 800x600 design resolution that would be 8px per 'unit'; when they match you basically get 1:1 size ratio.