DEV Community

Cover image for Space Physics
Sooraj (PS)
Sooraj (PS)

Posted on

7 2

Space Physics

So last month I was bored and decided to have some fun by coding some space related stuff. I took 5 space related topics but I have added 2 of them here since the rest are still in work in progress. I have been so much in to Space and Astronomy recently and then I wrote this simply to understand what happens and how it happens. These are my codepens

  1. How a satellite/asteroid/comet changes it speed and trajectory using the help of a planet or any other object with a gravitational force.

  1. Saturn's rings using real gravitational physics. The rings are actually small particles moving at high speed held together by the gravitational force but I keep the trails to look like there are more particles there. There are lots of properties to adjust on the codepen. Feel free to check it out.

Alt Text

The code is a little unoptimized for now so I am not adding the codepen embed here but here is the link to check it out https://codepen.io/SoorajSnBlz/pen/Vwprmdv

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (3)

Collapse
 
eerk profile image
eerk

This is so cool! Love how it's just force * mass to create this effect!

Collapse
 
soorajsnblaze333 profile image
Sooraj (PS)

Thank you :) Yeah just a bunch of simple math and boom we have it

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs