Game Development Community

Getting terrain block with mega terrain

by Guy Allard · in Torque Game Engine Advanced · 05/02/2008 (6:04 am) · 2 replies

Using megaterrains, the world contains multiple terrain blocks. Is there a quick way, given an (x,y) coordinate to find out which of the terrain blocks that point is contained in?

#1
05/07/2008 (4:21 pm)
There is nothing currently exposed to the scripts for that but you can see how it would be done in TerrainEditor::getTerrainUnderWorldPoint().
#2
05/08/2008 (9:49 am)
Thanks Matt, that's exactly what I was looking for.