Hi,
If you want to rotate the cube linearly, try this:
setInterval(function() {
cube.rotate(50, 0, 1000);
}, 1000);
The third parameter is the duration of the transition.
But if you want a responsive to finger’s animation with deceleration, it’s possible but more difficult. You have to look at the scroller’s mechanism which use the inertia component in order to compute the duration of the cubic-bezier’s transition to apply to the cube.
Hope this helps.
Sylvain
-
This reply was modified 262 days ago by
sylvain.