AW TERRAIN VERSION NEEDED

From ActiveWiki
Jump to navigation Jump to search


Minimum requirements
Added in version 4.1
SDKbuild 64


AW_TERRAIN_VERSION_NEEDED

Type

Integer

Description

Terrain version being used.

Notes

The application must set this to the required version. Version 1 of the terrain (pre 4.1) represented heights in short integers (16 bits) and textures in bytes (8 bits). Version 2 of terrain data represents heights in integers (32 bits) and textures in short integers (16 bits). Version 2 is the default for 4.1 applications and is reset to a value of 2 each time entering a world.

The data returned by the SDK for a method call will be converted to the given version. Which means there is a possible loss of data if it's being converted from version 2 to version 1 (e.g. the bot is inside a version 4.1 world, but has set AW_TERRAIN_VERSION_NEEDED to 1).

Used by

See also