functionsetSmoothState

Smooth transition function between state_a and state_b