Code Monkey home page Code Monkey logo

gravity-engine's Introduction

3D Gravity-Engine with Three.js

Gravitational Simulation Engine for Planets and Particles in 3D with Three.js (WebGL library)

Live Démo or : here

Earth-Moon simulation

It works well on Chrome and Safari but not good as well on IE.

Looking forward to contacting me on : [email protected]

Have a nice fun !

Special Commands and GUI :

  • SPACE : Pause state (very important !)
  • Left Click : Select a ball and show information on it
  • Righ Clik : Add velocity ball throught the raycast hit with the START_SPEED specified on right DAT Control panel
  • ESC/ECHAP : Swith Active/Inactive control of Free Cam (for FirstPersonControls.js specifically, but little buggy)
  • H : Show/Hide DAT GUI panel

Do not hesitate to add a Big Star (with bottom righ dat control GUI) on the scene center during or after the simulation.

Or change the main characteristics (Mass, direction, state, color..) of Planets/Particles in left control selection panel.

History :

This project is a branch of this one initial : http://codeblock.at/planets/ (demo)

Initial source code : https://codepen.io/Grilly86/pen/GBaCE by https://codepen.io/Grilly86/

Roadmap

I would to optimize the controls of OrbitControls and Free Cam (FirstPersonControls) because it is still a bit buggy at the moment, in order to switch easier between the different kind of Controls and Cameras and have a better experience in the 3D Universe.

Other :

Another JavaScript gravity engine (in 2D with p5.js)

gravity-engine's People

Contributors

almaric78 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

tommyteavee

gravity-engine's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.