setValue method

  1. @override
void setValue(
  1. ActorComponent component,
  2. double value,
  3. double mix
)
override

Implementation

@override
void setValue(ActorComponent component, double value, double mix) {
  ActorConstraint constraint = component as ActorConstraint;
  constraint.strength = constraint.strength * (1.0 - mix) + value * mix;
}