t3d. PropertyBindingMixer

This holds a reference to a real property in the scene graph; used internally. Binding property and value, mixer for multiple values.

Constructor

new PropertyBindingMixer(target, propertyPath, typeName, valueSize)

Parameters:
NameTypeDescription
targetObject3D
propertyPathString
typeNameStringvector/bool/string/quaternion/number/color
valueSizeNumber

Methods

accumulate(weight)

Accumulate value.
Parameters:
NameTypeDescription
weightNumber

accumulateAdditive(weight)

Additive Accumulate value.
Parameters:
NameTypeDescription
weightNumber

apply()

Apply to scene graph.

restoreOriginalState()

Apply the state previously taken via 'saveOriginalState' to the binding.

saveOriginalState()

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