Game world units
by Steve D · in Torque Game Engine · 02/21/2007 (5:03 pm) · 2 replies
Can anyone shed some light on game world units, how do I determine what a game world unit is on the map and how do I measure it? Supposed I wanted an AI to move X amount of game world units? I did some searches but can't find anything, or maybe I'm going down the wrong path entirely.
#2
If you adjust an object's position in the world editor by one unit, you are moving it one World Unit. Those unts are in meters, as measured by the height of the blue character.
I think the confusion is because at SS=8, each pixel in the terrain texture is about 1 inch. But those aren't world units, they're texels.
Note that what's important is that your objects appear to be the correct height, not the units. You have to assume the same units in Quake and Torque, what ever they are. Otherwise, a 100 inch tree in Quake will become a 100 meter tree in Torque.
02/25/2007 (9:41 am)
Ken Finney's book claims that a World Unit is 1 inch if SquareSize = 8, but I have no idea where that number comes from.If you adjust an object's position in the world editor by one unit, you are moving it one World Unit. Those unts are in meters, as measured by the height of the blue character.
I think the confusion is because at SS=8, each pixel in the terrain texture is about 1 inch. But those aren't world units, they're texels.
Note that what's important is that your objects appear to be the correct height, not the units. You have to assume the same units in Quake and Torque, what ever they are. Otherwise, a 100 inch tree in Quake will become a 100 meter tree in Torque.
Torque Owner Richard Preziosi
WinterLeaf Entertainment