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 json
Object 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 geometry
THREE.Geometry The geometry asoociated to the autotiles collision
CollisionSquare The collision square position
Array.<number> The json position width
number The texture total width height
number The texture total height x
number The x texture position y
number The y texture position w
number The w texture size h
number The h texture size count
number The faces count Returns:
Type Description Object