🔹Add Room to the Scene

addRoomtoScene: to add room to the scene (returns objId of the room)

assetName

asset name

required

string

Unit

position

default: [0, 0, 0]

optional

[float, float, float]

3D Units

rotation

default: [0, 0, 0]

optional

[float, float, float]

Radian

scale

default: [1, 1, 1]

optional

[float, float, float]

3D Units

// Some codevar roomId = IDE.addRoomtoScene({
    assetName: 'ROOMglb', //room object name
    position: [0, 0, 0],
    scale: [1, 1, 1],
    rotation: [0, 0, 0]
})

removeRoomfromScene:

// Some codeIDE.removeRoomfromScene({ id: roomId })

Last updated