Click on the green flag. This project is a simple method for simulating the random motion of a helium balloon in 3-dimensional (x, y, z) space. The x axis and y axis are in the plane of the screen and the z axis is perpendicular to the screen. Random changes to the x, y, and z coordinates (see Inside) are made to simulate a balloon wandering through 3-dimensional space. The balloon starts at (0, 0, 20).
The Pythagorean Theorem for plane right triangles (2-dimensions) can be generalized to 3, 4, and even n dimensions! As the position of the balloon changes along the z-axis, the size of the balloon increases as z increases and decreases as z decreases. The Pythagorean Theorem for s-space commutes the distance of the balloon form (0, 0, 0), the origin.