Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
AnySDK
Version: 1.1
Version: 1.0
Version: 1.2
Search
Preparing search index...
The search index is not available
Creator3dAPI
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
Info
Terrain
Block
Lightmap
Info
Terrain
Buffer
Terrain
Info
Terrain
Layer
Terrain
Layer
Info
Terrain
Renderable
Terrain
Vertex
TERRAIN_
BLOCK_
TILE_
COMPLEXITY
TERRAIN_
BLOCK_
VERTEX_
COMPLEXITY
TERRAIN_
BLOCK_
VERTEX_
SIZE
TERRAIN_
DATA_
VERSION
TERRAIN_
DATA_
VERSION2
TERRAIN_
DATA_
VERSION3
TERRAIN_
DATA_
VERSION_
DEFAULT
TERRAIN_
EAST_
INDEX
TERRAIN_
HEIGHT_
BASE
TERRAIN_
HEIGHT_
FACTORY
TERRAIN_
MAX_
BLEND_
LAYERS
TERRAIN_
MAX_
LAYER_
COUNT
TERRAIN_
MAX_
LEVELS
TERRAIN_
NORTH_
INDEX
TERRAIN_
SOUTH_
INDEX
TERRAIN_
WEST_
INDEX
Generated using
TypeDoc