block by HarryStevens 8c9eba0905777a6ea778ebfc16f4d743

Dynamic Globe Rotation with Inertia

Full Screen

A remake of a previous block, Dynamic Globe Rotation, but with Fil’s d3-inertia module.

TODO:

  1. Currently, you must wait for the globe to come to a complete stop before you can adjust any of the range sliders. It would be cool if you could adjust one of the angles even as the other two continue on their paths.

    UPDATE Fixed, thanks to Fil! This fix doesn’t let you stop only one angle of the inertial movement while the other two continue, but it’s an improvement.

     if (inertia.timer) inertia.timer.stop();
  2. Currently, the range sliders just behave like normal range sliders – when you release the slider, it stops moving, no matter how fast you slide it. It would be cool to somehow add inertia to the behavior of the range sliders.

index.html