Home▸Articles▸Physics & Mechanics

Gravity Simulation: Orbital Attraction in 3D

Explore the fundamental forces that shape our universe through interactive simulations.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Gravity Is

Gravity is a fundamental force of nature, always attracting objects towards each other. It was first described mathematically by Sir Isaac Newton in his law of universal gravitation: F = G * (m1*m2) / r^2, where F is the gravitational force between two masses m1 and m2, separated by distance r, with G being the gravitational constant.

This force explains why planets orbit stars, why objects fall to Earth, and even how galaxies hold together. The simulation allows you to visualize these interactions in a 3D space.

Orbital Mechanics

In an orbital system, the balance between gravitational attraction and the inertia of moving objects results in stable orbits. Kepler's laws describe the motion of planets around the sun: the orbit is elliptical with the sun at one focus; a line segment joining a planet and the sun sweeps out equal areas during equal intervals of time; and the square of the orbital period of a planet is proportional to the cube of the semi-major axis of its orbit.

The simulation lets you experiment with these principles by adjusting mass, velocity, and other parameters. You can observe how changes in initial conditions affect the resulting orbits.

live demo · related simulation● LIVE

Real-World Applications

Understanding gravity and orbital mechanics is crucial for many fields, including astronomy, space exploration, and satellite technology. For example, the Hubble Space Telescope's orbit around Earth is carefully calculated to ensure it remains in a stable path while avoiding atmospheric drag.

In the simulation, you can simulate such scenarios or even design your own orbits for spacecraft.

Why It Matters

The study of gravity and orbital mechanics is not just theoretical; it has practical applications in navigation, telecommunications, and space travel. The principles learned from these simulations can help predict the behavior of celestial bodies and design spacecraft trajectories.

Moreover, understanding these concepts is essential for future endeavors like colonizing other planets or establishing a lunar base.

Frequently asked questions

How does changing mass affect orbits in the simulation?

Increasing the mass of an object generally increases its gravitational pull and can lead to tighter, more stable orbits. Conversely, decreasing the mass results in weaker gravitational effects and less stable orbits.

Can I simulate a collision between two objects in the simulation?

Yes, by adjusting their initial velocities or positions, you can create scenarios where objects collide. The simulation will show the resulting changes in their trajectories and velocities.

What is the significance of Kepler's laws in this context?

Kepler's laws provide a framework for understanding how planets move around the sun. In the simulation, these laws help predict and explain the observed orbits of objects under gravitational influence.

How does adjusting orbital speed affect an object’s path?

Adjusting the orbital speed can change the shape and stability of an orbit. Faster speeds can lead to more elliptical or even hyperbolic paths, while slower speeds might result in circular orbits or even cause objects to fall into a body.

Try it live

Everything above runs in your browser — open Gravity Simulation: Orbital Attraction in 3D and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Gravity Simulation: Orbital Attraction in 3D simulation

What did you find?

Add reproduction steps (optional)