PropertyMixer

Buffered scene graph property that allows weighted accumulation; used internally.

Constructor

new PropertyMixer( binding : PropertyBinding, typeName : string, valueSize : number )

Constructs a new property mixer.

binding

The property binding.

typeName

The keyframe track type name.

valueSize

The keyframe track value size.

Properties

.binding : PropertyBinding

The property binding.

.cumulativeWeight : number

TODO

Default is 0.

.cumulativeWeightAdditive : number

TODO

Default is 0.

.referenceCount : number

TODO

Default is 0.

.useCount : number

TODO

Default is 0.

.valueSize : number

The keyframe track value size.

Methods

.accumulate( accuIndex : number, weight : number )

Accumulates data in the incoming region into accu<i>.

accuIndex

The accumulation index.

weight

The weight.

.accumulateAdditive( weight : number )

Accumulates data in the incoming region into add.

weight

The weight.

.apply( accuIndex : number )

Applies the state of accu<i> to the binding when accus differ.

accuIndex

The accumulation index.

.restoreOriginalState()

Applies the state previously taken via PropertyMixer#saveOriginalState to the binding.

.saveOriginalState()

Remembers the state of the bound property and copy it to both accus.

Source

src/animation/PropertyMixer.js