Actually based on where this question started, why not set the frame based on the angle of the wheel in the example elios provided?
My version would involve creating a variable oldx and comparing it with the current wheel.x
so basing the frame on wheel.x-wheel.oldx
but using the angle as explained above would be far better..