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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read 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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more