Game Development Community

Terrain Height & Texture at a location

by Kevin Bamonte · in Torque Game Engine · 10/24/2008 (11:51 am) · 2 replies

Hello All,

1) Is there anyway from within TorqueScript during a game to find the terrain height at a specific location ?


2) Is there anyway from within TorqueScript during a game to find the terrain texture applied at a specific location ?

Is there a terrain matrix that stores this info or can i query the terrain file ? how does this work ?


thank you in advance,

Kevin

#1
10/24/2008 (11:58 am)
Let me add a "me too" to this post. I'd be interested in combining this kind of thing with the replicators, so that the location and type of plants (or other objects) placed could be influenced by the terrain texture.
#2
10/24/2008 (1:24 pm)
GetTerrainHeight( XY position )

This adds a terrain texture referencing system to Torque:
twSurfaceReference Object for TGE
port of twSurfaceReference for TGEa