Cocos Creator
Manual
API Ref
Cocos2d-x
Manual
API Ref
Version: 3.1
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.2
Version: 3.0
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
terrain
HeightField
Class HeightField
Hierarchy
HeightField
Index
Constructors
constructor
Properties
data
h
w
Methods
get
get
At
get
Clamp
set
Constructors
constructor
new
Height
Field
(
w
:
number
, h
:
number
)
:
HeightField
Parameters
w:
number
h:
number
Returns
HeightField
Properties
data
data
:
Uint16Array
= new Uint16Array()
h
h
:
number
= 0
w
w
:
number
= 0
Methods
get
get
(
i
:
number
, j
:
number
)
:
number
Parameters
i:
number
j:
number
Returns
number
get
At
get
At
(
x
:
number
, y
:
number
)
:
number
Parameters
x:
number
y:
number
Returns
number
get
Clamp
get
Clamp
(
i
:
number
, j
:
number
)
:
number
Parameters
i:
number
j:
number
Returns
number
set
set
(
i
:
number
, j
:
number
, value
:
number
)
:
void
Parameters
i:
number
j:
number
value:
number
Returns
void
Globals
terrain
Height
Field
constructor
data
h
w
get
get
At
get
Clamp
set
Terrain
Terrain
Asset
Terrain
Block
Terrain
Block
Lightmap
Info
Terrain
Buffer
Terrain
Info
Terrain
Layer
Terrain
Layer
Info
Terrain
Renderable
TERRAIN_
BLOCK_
TILE_
COMPLEXITY
TERRAIN_
BLOCK_
VERTEX_
COMPLEXITY
TERRAIN_
BLOCK_
VERTEX_
SIZE
TERRAIN_
DATA_
VERSION
TERRAIN_
DATA_
VERSION2
TERRAIN_
DATA_
VERSION3
TERRAIN_
DATA_
VERSION4
TERRAIN_
DATA_
VERSION_
DEFAULT
TERRAIN_
EAST_
INDEX
TERRAIN_
HEIGHT_
BASE
TERRAIN_
HEIGHT_
FACTORY
TERRAIN_
HEIGHT_
FMAX
TERRAIN_
HEIGHT_
FMIN
TERRAIN_
MAX_
BLEND_
LAYERS
TERRAIN_
MAX_
LAYER_
COUNT
TERRAIN_
MAX_
LEVELS
TERRAIN_
NORTH_
INDEX
TERRAIN_
SOUTH_
INDEX
TERRAIN_
WEST_
INDEX
bb
Max
bb
Min
Generated using
TypeDoc