Distance to terrain surface
by Albert Steckenborn · in Torque Game Engine Advanced · 09/15/2006 (12:09 pm) · 2 replies
Hi, can anybody tell me or give me an advice how to detect the distance to my atlas 2 terrain surface from my object ?
void TestBox::processTick(const Move* move)
{
I need here a float value how height is my box over the atlas 2 terrain surface
}
For any advice i will be thankful
Greetings
void TestBox::processTick(const Move* move)
{
I need here a float value how height is my box over the atlas 2 terrain surface
}
For any advice i will be thankful
Greetings
About the author
Torque Owner Ryan Dey (not Tom Watson)
Presumably, you could do:
%altitude = obj.Zvalue - getTerrainHeight(obj.position); or something of that sort (with proper syntax).