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:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
childObject3D | THREE. | The object to add. | ||
renderDataConfig | RenderDataConfig | <optional> | {} | Contains path, anchor, scale and rotation. |
animations | Array.<THREE.AnimationClip> | <optional> | null | An array of animations. |
- Source
Classes
Members
object3D :THREE.Object3D
Parent object of the object3D to set up
Type:
- THREE.
Object3D
- Source
Methods
clone() → {RenderData}
It clones the object3D and then clones all of the materials in the object3D
- Source
Returns:
A new RenderData object with a cloned object3D and the same animations.
- Type:
- RenderData