Binding

new Binding(root: object, path: string)
THREE: THREE.PropertyBinding

Resolves a dotted property path on a scene-graph node for animation. Reads and writes property values during playback.

Properties

NameTypeDescription
root

object

The root object to resolve paths from.

path

string

Dotted property path, e.g. 'position.x' or 'visible'.

Methods

MethodDescription
resolveNode(): object|undefined

Resolves the target object from the path.

getValue(targetArray: number[], offset: number): void

Reads the current property value into the array.

setValue(sourceArray: number[], offset: number): void

Writes a value from the array to the property.