Class: OwenSystemFactory

factories.OwenSystemFactory()

Main factory for creating the complete Owen animation system

Constructor

new OwenSystemFactory()

Source:

Methods

(async, static) createBasicOwenSystem(model) → {Promise.<OwenAnimationContext>}

Create a basic Owen system with minimal configuration

Parameters:
Name Type Description
model THREE.Object3D

The 3D model

Source:
Returns:

The configured Owen system

Type
Promise.<OwenAnimationContext>

(async, static) createCustomOwenSystem(gltfModel, scene, customStates) → {Promise.<OwenAnimationContext>}

Create an Owen system with custom state handlers

Parameters:
Name Type Description
gltfModel THREE.Object3D

The loaded GLTF model

scene THREE.Scene

The Three.js scene

customStates Map.<string, function()>

Map of state name to handler class

Source:
Returns:

The configured Owen system

Type
Promise.<OwenAnimationContext>

(async, static) createOwenSystem(gltfModel, scene, optionsopt) → {Promise.<OwenAnimationContext>}

Create a complete Owen animation system

Parameters:
Name Type Attributes Default Description
gltfModel THREE.Object3D

The loaded GLTF model

scene THREE.Scene

The Three.js scene

options Object <optional>
{}

Configuration options

Properties
Name Type Attributes Description
gltfLoader THREE.GLTFLoader <optional>

Custom GLTF loader

Source:
Returns:

The configured Owen system

Type
Promise.<OwenAnimationContext>