Game Development Community

Terrain Coordinates.

by Xavier "eXoDuS" Amado · in Torque Game Engine · 07/16/2002 (9:52 pm) · 5 replies

I have a little question about the terrain.
Considering no terrain repetition, where is the coordinate 0,0,0 placed?
Also what coordinate corresponds to the top left corner and which one to the bottom right coordinate?
Thanks in advance.

#1
07/16/2002 (10:14 pm)
0,0,0 is right smack in the middle of the mission area. You will have to add to the z value though the height of the terrain so that you aren't way below the actual terrain.
#2
07/16/2002 (10:22 pm)
MissionArea? Are you sure the coordinates have something to do with the mission area?
I don't think so... cause in that case moving the mission area would move the objects in the terrain, which doesnt happen...
And i'm not taking in count Z value either
#3
07/16/2002 (10:26 pm)
All I know is when I find the height of the terrain at Point2F(0,0) its finding the height at the center of the mission area and not the center of the non-tiling terrain.
#4
07/17/2002 (12:08 am)
I don't think the mission area has anything to do with the terrain. As far as I know it's a totally seperate entity.

For me, the terrain is centered on it's position. So, if I set it to "0 0 0" the top left corner is at "-1024 -1024 0" and the bottom right is at "1024 1024 0."
#5
07/17/2002 (10:10 am)
Yes, that's true chris, I found it by disabling terrain repetion and echoing in the console the values of X and Y for the player position :)