Premium Only Content

Planet Simulation In Python - Tutorial
Welcome back to another tutorial video! In this video I am going to be showing you how to make a planet simulation using Python! The goal of this tutorial is to simulate the orbits of different planets around the sun using real astronomical values! We're also going to apply the force of gravity on each of the planets so we get an accurate elliptical orbit! I hope you enjoy!
💻 Thanks to BackTrace for sponsoring this video! Build better games with less bugs today for FREE by signing up for a developer account: https://hubs.la/Q012hTT00
💻 ProgrammingExpert is the best platform to learn how to code and become a software engineer as fast as possible! Check it out here: https://programmingexpert.io/tim and use code "tim" for a discount!
📄 Resources 📄
Inspiration For This Video: https://fiftyexamples.readthedocs.io/en/latest/gravity.html
Code In This Video: https://github.com/techwithtim/Python-Planet-Simulation
Fix Pip (Windows): https://www.youtube.com/watch?v=AdUZArA-kZw&t=204s
Fix Pip (Mac): https://www .youtube.com/watch?v=E-WhAS6qzsU
⭐️ Timestamps ⭐️
00:00 | Planet Simulation
01:15 | Sponsor
02:12 | Setup & Installation
03:46 | Pygame Window Setup
09:28 | Creating Planets
18:50 | Initializing Planets (Using Real Values)
27:33 | Moving Planets Explanation (Math & Physics)
36:45 | Implementing Movement Physics
51:58 | Drawing Orbits
55:38 | Drawing Distance To Sun
59:18 | Conclusion
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
👕 Merchandise: https://teespring.com/stores/tech-with-tim-merch-shop
📸 Instagram: https://www.instagram.com/tech_with_tim
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/twt
📝 LinkedIn: https://www.linkedin.com/in/tim-ruscica-82631b179/
🌎 Website: https://techwithtim.net
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim
🎬 My YouTube Gear: https://www.techwithtim.net/gear/
💵 One-Time Donations: https://www.paypal.com/donate?hosted_button_id=CU9FV329ADNT8
💰 Patreon: https://www.patreon.com/techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
-Tech With Tim
-Planet Simulation
-Planet Simluation In Python
-How to Simulate Planets
-Python Simulation Tutorial
⭐️ Hashtags ⭐️
#TechWithTim #Python #PlanetSimulation
-
36:41
Tech With Tim
1 year ago $0.03 earnedPython Selenium Tutorial - Automate Websites and Create Bots
262 -
8:06
Dr. Nick Zyrowski
1 day agoMost DANGEROUS TOXIC ITEMS Hiding in Your Home - These Make Your Sick
6211 -
LIVE
The Charlie Kirk Show
59 minutes agoAn Epstein Special Counsel? + The Minneapolis Mamdani | Parnell, Caputo, Benz | 7.15.25
3,899 watching -
1:04:33
The Rubin Report
2 hours agoGavin Newsom Humiliated as Shawn Ryan Reads His Failures Back to His Face
60.6K48 -
1:01:24
VINCE
4 hours agoThis Could Change DC Politics | Episode 85 - 07/15/25
231K196 -
1:57:55
Bitcoin on Rumble
3 hours agoBitcoin Breaching, Dollar Sinking
19.5K1 -
1:10:55
Dear America
4 hours agoTrump Admin FINALLY Releasing More On Epstein!! + Department Of Education Is COOKED!
134K144 -
3:07:23
Matt Kohrs
12 hours agoCPI Inflation Report, Stocks Skyrocket & Bitcoin Cools || Live Trading
35.5K1 -
2:59:00
Wendy Bell Radio
8 hours agoSH*T Is About To Get Real
82.3K92 -
4:01:10
The Bubba Army
1 day agoGhislaine Maxwell: Ready to TALK?! - Bubba the Love Sponge® Show | 7/15/25
217K17