Class: Object3DCustom

Object3DCustom

A 3D object custom in the map

new Object3DCustom (json, datas)

Name Type Description
json Object Json object describing the object 3D custom
datas SystemObject3D The system object 3D
Properties:
Name Type Description
id number The ID
datas SystemObject3D The system object 3D

Methods

read (json, datas)

Read the JSON associated to the object 3D custom
Name Type Description
json Object Json object describing the object 3D custom
datas SystemObject3D The system object 3D

updateGeometry (geometry, position, count)Array.<any>

Update the geometry of a group of objects 3D cutom with the same material
Name Type Description
geometry THREE.Geometry Geometry of the object 3D custom
position Array.<number> The json position of the object 3D custom
count number The faces count
Returns:
Type Description
Array.<any>