Class: Floor

Floor

A floor in the map

new Floor (json)

Name Type Description
json Object optional Json object describing the floor

Extends

Methods

read (json) overrides

Read the JSON associated to the floor
Name Type Description
json Object Json object describing the floor

updateGeometry (geometry, position, width, height, count)Object overrides

Update the geometry associated to this floor and return the collision result
Name Type Description
geometry THREE.Geometry The geometry asoociated to the autotiles
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