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
-
7:54
Tech With Tim
1 year ago $0.01 earnedThese 7 Coding Skills Give You an UNFAIR Advantage
278 -
1:04:29
BonginoReport
5 hours agoFDA Vax Pusher Needs to Look in the Mirror - Nightly Scroll w/ Hayley (Ep.16) - 03/31/2025
74.4K48 -
LIVE
Misfit Electronic Gaming
4 hours ago $0.01 earned"LIVE" It's So Monday So lets Perk it up. Lets Earn Gears"Party Animals" & R.E.P.O. Who will join me????
73 watching -
54:13
Sarah Westall
4 hours agoCIA Disclosures: Ark of the Convenient, the Pyramid Code, Ley Lines & Earth’s Energy w/ Jason Shurka
48.8K19 -
1:16:28
Kim Iversen
6 hours agoThere Was No COVID Virus! How We've All Been Duped By The Medical Establishment
116K167 -
LIVE
Crossplay Gaming!
2 hours agoLet's Check Out MORE Metroid Prime Remastered in 4K! (With the RTX 5090!)
160 watching -
14:24
AlaskanBallistics
10 hours ago $0.06 earnedMDT HNT26 Chassis on A Remington 700 7mm Remington Magnum
12.2K5 -
13:34
T-SPLY
6 hours agoCNN Is Now Accusing Trump Staff Of War Crimes
36.5K20 -
1:33:25
2 MIKES LIVE
6 hours ago2 MIKES LIVE #199 Deep Dive Monday!
29.2K4 -
54:40
LFA TV
10 hours agoThe World Realigns Against America | TRUMPET DAILY 3.31.25 7PM
28K11