RenderData

Contains a THREE.Object3D and an array of animations

Constructor

new RenderData(childObject3D, renderDataConfigopt, animationsopt)

It takes an object3D and an optional animations object, and sets the object3D and animations properties of the object

Parameters:
NameTypeAttributesDefaultDescription
childObject3DTHREE.Object3D

The object to add.

renderDataConfigRenderDataConfig<optional>
{}

Contains path, anchor, scale and rotation.

animationsArray.<THREE.AnimationClip><optional>
null

An array of animations.

Classes

RenderData

Members

object3D :THREE.Object3D

Parent object of the object3D to set up

Type:
  • THREE.Object3D

Methods

clone() → {RenderData}

It clones the object3D and then clones all of the materials in the object3D

Returns:

A new RenderData object with a cloned object3D and the same animations.

Type: 
RenderData