aframe-nbody-component
A n-body system for A-Frame. Depends on aframe-physics-system
Use this system if you want to do a simulation of celestial bodies. Only use it if you really feel like tweaking a lot of values. This n-body system only does a direct gravitational n-body simulation. Does not take relativity into consideration. There are no calculation optimizations. Barnes–Hut simulation coming in the future.
Stars sky image from: http://www.chrusion.com/public_files/tycho/Stars_Tycho2_3000.png
API
Property | Description | Default Value |
---|---|---|
g | Gravitational constant of the universe |
Installation
Note you have to turn off gravity from the aframe-physics-system for this to work.
Browser
Install and use by directly including the browser files:
My A-Frame Scene
npm
Install via npm:
npm install aframe-nbody-system
Then require and use.
;;