SceneNode

SceneNode

Provides getters and setters for common properties of scene nodes (ModelInstance Container)

Members

id :string

System-wide unique identifier

Type:
  • string

interaction :Interaction

Node's interaction settings.

Type:

meta :MetaData

Node's meta data.

Type:

pose :Pose

Node's pose.

Type:

visible :boolean

Node's visibility.

Type:
  • boolean

Methods

(async) setInteraction(newInteraction) → {Promise}

Changes object's interaction settings.

Parameters:
Name Type Description
newInteraction Interaction
Returns:

Promise that resolves when updated.

Type
Promise

setMeta(metaChanges) → {Boolean}

Parameters:
Name Type Description
metaChanges MetaData
Returns:

assignment result

Type
Boolean

(async) setParent(newParent) → {Promise}

Moves the node to a new container.

Parameters:
Name Type Description
newParent Container
Returns:

resolved when done.

Type
Promise

(async) setPose(newPose) → {Promise}

Changes object's pose.

Parameters:
Name Type Description
newPose Pose
Returns:

Promise that resolves when updated.

Type
Promise

(async) setVisible(newVisible) → {Promise}

Changes object's visibility.

Parameters:
Name Type Description
newVisible boolean
Returns:

Promise that resolves when updated.

Type
Promise