valentinvichnal / playcanvas-gravity Goto Github PK
View Code? Open in Web Editor NEWGravity WebGL experiment in the Solar System
Home Page: https://valentinvichnal.github.io/playcanvas-gravity
License: Other
Gravity WebGL experiment in the Solar System
Home Page: https://valentinvichnal.github.io/playcanvas-gravity
License: Other
Can't make planet size realistic. The ratio of sizes means that if you can see the planet's orbit you won't be able to see the planet.
I tried this with Earth and moon only on an SVG animation, and both objects are barely visible, when I added the sun, everything was invisible.
The scale really is that bad.
For reference data:
Earth Diameter: 12,742 km
Earth Orbit: 940,000,000km
Ratio: 73,771:1 so it's not even a pixel on an 8k monitor if you show it's orbit.
Moon Diameter: 3,474.8 km
Ratio to earth orbit is greater than 280k:1,
I could not escape the Earth's gravity. If I understand correctly you are using the wrong formula, F = m*g. The g is nearly constant if we use it on our planet, but it is not in space.
The correct formula whould be F = G * M_1*M_2/R^2. Also, it then whould be easy to add other planets, as their contribution to this is simply adding the forces together.
[https://en.wikipedia.org/wiki/Gravity#Newton.27s_theory_of_gravitation]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.