3D Three-Body Physics Simulation

DESCRIPTION

Explore the chaos of a 3-body solar system with a configurable 3D Three.js physics simulation. Start simulating the world of 3-body now:

https://dkhdev.itch.io/3-body-sim-3d

!!! Download the video tutorial below

INSTRUCTIONS

VIEWPORT

  • LMB + drag to look around.
  • Zoom with scroll wheel or two fingers.
  • Pan by clicking scroll wheel or using two-finger drag.

TERMINAL

  • Access list of commands by entering help
  • reset defaults all of the settings and restarts the simulation.
  • restart restarts the simulation.
  • pause temporarily freezes the simulation.
  • resume unfreezes the simulation.
  • run starts the simulation for the first time.
  • debug lists statistics.
  • clear clears the terminal.

PANELS

  • Select the body you want to edit with the tabs.
  • Edit visuals, the camera, and gravity constants with Global Settings.
  • Edit masses, positions, and velocities with Selected Body Settings.

FEATURES

  • Simulates the physics of a realistic 3-body system.
  • Has adjustable simulation parameters.
  • Compatible with a wide range of devices and runs in your browser.
  • Rendered in 3-dimensional space.
  • Easy to use UI.
  • Neat vfx.

TECHNOLOGY

This project was made with Three.js and GitHub Codespaces.

I used them because I needed to render 3D graphics using JavaScript and make the simulation compatible with other devices.

CREDIT

Designed and built by me. AI was used to find tutorials and help debug code.

LICENSE

All code is free to use with credit.

Updated 8 hours ago
Published 17 days ago
StatusIn development
PlatformsHTML5
Authordkhdev
GenreSimulation
Tags3D, javascript, Physics, three-body
ContentNo generative AI was used

Download

Download
TUTORIAL 34 MB

Comments

Log in with itch.io to leave a comment.

Cool! (this is @samkov i changed my username)

k

thanks! It's still a WIP but I'll publish the finished ver soon

cool