Replace rotation with rotationCurve.