You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not a math/signal processing whiz but I think this is an example of the Nyquist rate.
Perhaps this could be made a property on RBBSpringAnimation. As in some situations I think 60 would be fine but others a higher value is going to produce smoother results.
The text was updated successfully, but these errors were encountered:
The sample lets you control the animation with the slider. Once the app loads into the iOS simulator hit the "setup" button then you can control the time with the slider. You will see a default of 60 leads to big jumps at the beginning of the animation for the red box but the blue box is smoother with 120 keyframes.
Set the segmented control to linear and hit setup again to see how kCAAnimationLinear calculationMode effects the animation.
While using RBBSpringAnimation I noticed that movement was quite jerky in the initial phases of the spring animation.
To combat this I increased the "sampling rate" specified in RBBAnimation's values method from 60 to 120. Eg:
The results seem to be smoother animations.
I'm not a math/signal processing whiz but I think this is an example of the Nyquist rate.
Perhaps this could be made a property on RBBSpringAnimation. As in some situations I think 60 would be fine but others a higher value is going to produce smoother results.
The text was updated successfully, but these errors were encountered: