setSpeed method

void setSpeed(
  1. MorphSpeed speed
)

Updates the speed profile on a live controller.

Safe to call at any time, including while an animation is running. The new spring profile takes effect on the next open or close call — the current simulation is not interrupted.

Implementation

void setSpeed(MorphSpeed speed) {
  _speed = speed;
}