Class: MapElement

MapElement

An element in the map

new MapElement ()

Properties:
Name Type Description
xOffset number The x offset of the object according to layer
yOffset number The y offset of the object according to layer
zOffset number The z offset of the object according to layer
orientation Orientation The orientation according to layer
upDown CameraUpDown The camera up down orientation according to layer

Methods

read (json)

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

scale (vecA, vecB, vecC, vecD, center, position, size, kind)

Scale the vertices correctly
Name Type Description
vecA THREE.Vector3 The A vertex to rotate
vecB THREE.Vector3 The B vertex to rotate
vecC THREE.Vector3 The C vertex to rotate
vecD THREE.Vector3 The D vertex to rotate
center THREE.Vector3 The center to rotate around
position Array.<number> The json position
size THREE.Vector3 The scale size
kind ElementMapKind The element map kind