Properties:
| Name | Type | Description |
|---|---|---|
up |
boolean | Indicate if the layer is up or down |
texture |
Array.<number> | Texture rect of the land |
Methods
-
Read the JSON associated to the land
Name Type Description jsonObject Json object describing the land -
Return the rect index
Returns:
Type Description number -
Update the geometry associated to this land and return the collision result
Name Type Description geometryTHREE.Geometry The geometry asoociated to the autotiles collisionCollisionSquare The collision square positionArray.<number> The json position widthnumber The texture total width heightnumber The texture total height xnumber The x texture position ynumber The y texture position wnumber The w texture size hnumber The h texture size countnumber The faces count Returns:
Type Description Object