endStateRestricted = stateController.restrictStateBoundsCopy( endState, prevState, pivotX, pivotY, false, false, true);
State restrictedState = stateController.restrictStateBoundsCopy( state, prevState, pivotX, pivotY, true, false, true); animateStateTo(restrictedState, false);