Class: Autotile

Autotile

new Autotile (json)

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
json Object 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
geometry THREE.Geometry The geometry asoociated to the autotiles
texure TextureSeveral The several texture used for this geometry
position Array.<number> The json position
width number The texture total width
height number The texture total height
count number The faces count
Returns:
Type Description
Object

getIndex ()number inherited overrides

Return the rect index
Returns:
Type Description
number