Balls Rolling on a Sphere

Balls of the same size roll on the surface of a sphere.
There are up to three orbits (at right angles to each other) and up to three balls in each orbit.
How big can the balls be without touching each other, and how should one set the delays in order to avoid any collision?



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Move the time slider to rotate the balls around the center sphere.
The radius of the center sphere is 2.
The radii of the balls are 1 at the start, but can be changed (between 0.1 and 3) with the slider. Note that the apparent size of the center sphere will change when the slider is moved, because the plot range is adjusted automatically.
Slider "delay 1" controls the difference (in degrees) between the purple and the yellow ball.
Slider "delay 2" controls the difference (in degrees) between the red and the yellow ball.
Balls on the same orbit are always equidistant.
If you select two balls per orbit, they are 180 degrees apart.
If you select three balls per orbit, they are 120 degrees apart.
You can separately switch off the display of the center sphere or the display of the three black circles.
Collision test:
The distances between all visible balls are permanently recalculated by the system while the time slider is moved.
The smallest distance between any two balls is indicated on the left. If only one orbit is selected, the number is set to 1. This number should always be greater than or equal to zero. If it is negative, a collision has occurred, and the central sphere will turn black.
The collision test can be switched off with the "test collision" checkbox.


    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2017 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+