| Name | Type | Description |
|---|---|---|
json |
Object | optional Json object describing the autotile |
Properties:
| Name | Type | Description |
|---|---|---|
autotileID |
number | The autotile ID |
tileID |
number | The tile ID kind to draw according to other autotiles outside |
Extends
Methods
-
read (json) overrides
-
Read the JSON associated to the autotile
Name Type Description jsonObject Json object describing the autotile -
updateGeometry (geometry, texure, position, width, height, count)Object overrides
-
Update the geometry associated to this autotile and return the collision result
Name Type Description geometryTHREE.Geometry The geometry asoociated to the autotiles texureTextureSeveral The several texture used for this geometry positionArray.<number> The json position widthnumber The texture total width heightnumber The texture total height countnumber The faces count Returns:
Type Description Object -
Return the rect index
Returns:
Type Description number