⚡ Explore Gravity: Interactive Experiments
Select an orbital mechanics experiment to load directly into the live simulator.
Stable Solar System
Orbital motion occurs because gravity continuously accelerates planets inward toward the central body while their tangential velocity carries them forward.
Binary Star System
Two massive bodies orbit a shared center of mass (barycenter) rather than one remaining stationary, demonstrating mutual gravitational attraction.
Figure-8 Three-Body
Under carefully calculated initial conditions (Chenciner & Montgomery, 2000), three equal masses can trace an identical planar figure-eight path indefinitely.
High-Mass Debris Swarm
A stylized high-mass body anchors an orbital swarm of debris particles. Bodies that make geometric contact undergo momentum-conserving mergers.
Lagrange Equilibrium (L4/L5)
Demonstrates stable gravitational equilibrium points 60° ahead (L4) and 60° behind (L5) a secondary body orbiting a massive primary star.
01. How Gravity Creates Orbits: Continuous Free Fall
Understanding the geometry of orbital motion through vectors and momentum.
An orbit is not a state of zero gravity. Instead, an orbit is continuous free fall. As an object travels through space, gravity constantly pulls it inward toward another mass. At the same time, the object’s forward tangential velocity carries it forward.
If the sideways speed is calibrated correctly, the falling trajectory bends at the exact rate the surface of the primary body curves away underneath it. The body continues to fall indefinitely without ever hitting the ground.
- • Velocity Vectors (Cyan): Point in the direction the body is currently traveling. The arrow length indicates instantaneous speed.
- • Gravity Vectors (Purple): Point directly along the line of net gravitational acceleration toward neighboring masses.
- • Ghost Trails: Reveal the curved historical path created by the continuous perpendicular acceleration.
Sideways speed is insufficient to overcome inward gravitational pull; the body spirals inward and merges with the primary.
The body enters a stable, recurring elliptical trajectory with the primary mass at one focus.
Kinetic energy exceeds gravitational potential energy; the path opens into an unbound parabolic or hyperbolic trajectory into deep space.
02. Newton's Law of Universal Gravitation
Theoretical physics equation vs. simulation implementation
In physical reality, the gravitational attraction between two masses is governed by Newton's inverse-square law:
Where G is the gravitational constant, m₁, m₂ are the interacting masses, and r is the distance between their centers.
03. Orbital & Escape Velocity Relationships
Conceptual velocity requirements for bound orbits
For an ideal circular orbit around a dominant primary mass M at radius r, centripetal acceleration equals gravitational acceleration:
- • Mass Proportionality: Greater primary mass M demands a higher orbital speed to avoid falling inward.
- • Distance Relationship: As orbital distance r increases, required circular speed drops by 1/√r.
- • Escape Velocity Factor: Multiplying circular speed by √2 (≈ 1.414) yields escape velocity, allowing a body to permanently break free of the gravitational well.
04. How Gravity Pulse Works: Model & Limitations
A transparent engineering overview of the simulator's computational mechanics.
Calculates mutual gravitational attraction using Newton's universal force law with Plummer softening. Every pair of bodies interacts symmetrically (Newton's third law) with O(N²) computational complexity.
Uses a symplectic Velocity Verlet multi-substep integration scheme (4 substeps per 60 Hz physics tick). Symplectic integrators preserve phase-space volume and provide superior long-term energy stability compared to standard Euler integration.
A fixed 60 Hz physics accumulator decouples physics integration from the monitor refresh rate (40 Hz, 60 Hz, 144 Hz). Simulation progression is consistent across devices and immune to tab-switch physics spikes.
Gravity Pulse uses dimensionless simulation units (mass u, distance u, velocity u/t). The simulator demonstrates gravitational principles and orbital behavior rather than reproducing calibrated astronomical measurements.
Collisions are treated as perfect inelastic mergers. Mass is summed, linear momentum is strictly conserved (v_new = [m₁v₁ + m₂v₂] / [m₁ + m₂]), and radius expands under volume conservation. Fragmentation is not modeled.
Does not model general relativity, spacetime curvature, frame-dragging, or gravitational radiation. Designed as an interactive educational laboratory for learning orbital mechanics, not precision astronomical prediction.
? Frequently Asked Questions
Detailed answers regarding the Gravity Pulse physics engine and simulator features.
What does Gravity Pulse simulate?
Gravity Pulse simulates the mutual gravitational attraction between multiple bodies in 2D space using Newton's law of universal gravitation with gravitational softening. It allows users to experiment with planetary orbits, binary star pairs, and chaotic three-body configurations.
Is Gravity Pulse physically accurate to real astronomical systems?
Gravity Pulse is an interactive educational sandbox rather than a calibrated astronomical ephemeris. It accurately computes Newtonian gravitational forces and symplectic orbital integration, but uses dimensionless units and simplified assumptions rather than reproducing exact planetary distances or orbital periods.
What units does Gravity Pulse use?
Gravity Pulse uses transparent, dimensionless simulation units: mass units (u), distance units (u), and velocity units per tick (u/t). It does not use real-world units like solar masses, astronomical units, or km/s.
Why do planets orbit instead of falling directly into the star?
An orbit is continuous free fall. An orbiting body possesses sufficient sideways (tangential) velocity so that as gravity curves its trajectory downward, the surface curves away underneath it at the exact same rate.
What is gravitational softening?
In pure Newtonian gravity, the force approaches infinity as distance approaches zero. Gravity Pulse incorporates a softening parameter (epsilon = 8.0 units) into the denominator to prevent unrealistic numerical acceleration spikes during close flybys.
Does Gravity Pulse simulate general relativity?
No. Gravity Pulse does not model general relativity, spacetime curvature, frame dragging, or gravitational waves. The black-hole objects in the simulator are stylized, high-mass bodies operating under the same softened Newtonian gravity model.
What happens when two bodies collide in the simulator?
When two bodies make geometric contact, the simulation resolves the event as a perfect inelastic merger. Mass is summed, total linear momentum is strictly conserved to compute the new velocity, and the new radius is calculated via volume conservation. Fragmentation and explosive debris are not modeled.
Can I share my custom simulation?
Yes. Clicking the Share button encodes your simulation's celestial bodies, velocities, masses, and gravity settings into a compact URL link that can be shared and reopened on any device.