Skip to content

Simulation made from scratch of an N-body system with gravity, electromagnetism, collisions, and friction, where you can control the speed, mass, charge, and position of each object.

License

Notifications You must be signed in to change notification settings

Wartets/N-Body-Problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-Body Simulation

Introduction

This project simulates the motion of multiple bodies (N-bodies) under the influence of gravitational forces, electromagnetic forces, fluid friction, and collision physics. It is implemented as an HTML5 web application, using CSS for styling and JavaScript for the simulation logic.

Main Features

  • Dynamic Object Addition: You can add an unlimited number of objects, constrained only by your computer's processing power.
  • Field visualization: You can observe the force fields applied to the simulation, changing according to the objects.
  • Multi-language Support: Available in English, French, Spanish, and German, Italian, Latin (also some amusing translations) with additional languages planned for future releases.
  • Special Thanks: Appreciation to Arthur Loubeau for contributing the Spanish translation and to Christian Abou for the Italian translation.

Usage

For more information on how to access and use the simulation, please visit the wiki.

Example

Here’s some examples of the simulation in action: (images from v1.1.2)

exemple1 exemple2 exemple3

Compatibility

The simulation has been tested on:

  • Firefox: Version 130.0.1 (64-bit) (very good)
  • Chromium: Version 122.0.6250.0 (Dev Build, 64-bit) (very good)
  • Safari: iOS 16.4.1 (20E252) (okay)
  • Firefox Beta: Version 131.0 45403 (Dev Build on iOS 16.4.1) (well)

Changelog

For detailed updates and improvements, please refer to the Full Changelog.