Torque 3D 3.7
ContentsIndexHome
PreviousUpNext
_getTerrainHeight1 Function
Syntax
C++
ConsoleDocFragment _getTerrainHeight1("@brief Gets the terrain height at the specified position\n\n" "@param position The world space point, minus the z (height) value. Formatted as (\"x y\")\n\n" "@return Returns the terrain height at the given point as an F32 value.\n\n" "@ingroup Terrain", NULL, "bool getTerrainHeight( Point2I position );");

ConsoleMethod(TerrainBlock, save, bool, 3, 3, "(string fileName) - saves the terrain block's terrain file to the specified file name.") { char filename[256]; dStrcpy(filename,argv[2]); char *ext = dStrrchr(filename, '.'); if (!ext || dStricmp(ext, ".ter") != 0) dStrcat(filename, ".ter"); return static_cast(object)->save(filename);

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!