Orbital physics V3.00
by JawsSwaj
Description
https://scratch.mit.edu/projects/1317103428/ thanks to the creator of this game for the "Supermassive" sprite used for rendering stuff V1.0-First release V1.1-Added planet collisions V1.2-Fixed some messed up physics calculations V1.3-Added zoom V1.4-Fixed planet rendering and made planet collisions based off of radius of the planet and not actually touching the planet, which fixes collisions when zooming and with extremely large planets. V1.5-Added atmospheres and new planet texture(mars's moon, but doesn't currently work) V1.6-Added lighting mode for atmospheres to make it look better V1.7-Orbiting planets! Added the ability for planets to orbit, and for planets to orbit each other(ex. moon-->earth-->sun). Also updated the trajectory to calculate the positions ahead of time. V1.8-FPS, pausing, ability to disable patched conics orbital physics system(bad idea), pause slider, and better setting organization. Also added a planet on the right that tells you what soi you are in. V1.9-Fixed rendering, again. Also made planet's atmospheres part of their sprites to save on rendering and to add a performance boost. Added the option for the rocket to bounce off of planets, which adds to realism. V2.0-Added a turbowarp detector, using the is compiled? custom block boolean trick. This allowed me to change sizing code so that turbowarp could remove size limits without the sprites going crazy. This allows for a better experience on turbowarp. V2.1-Added planet soi markers when the trajectory passes through them. Also fixed instability in trajectory due to floating point numbers(to a small degree, trajectory lines still shift, especially with bounces) V2.2-Fixed and readded timewarp! V2.3-Moved all code for everything into one sprite, removing the use for message broadcasting and *maybe* fixing some lag. V2.4-Automatically disabled trajectory and soi drawing during timewarp due to performance reasons. V2.5-Added a new planet, Saturn! V2.6-Big step towards VAB update, added physics that will work for several objects at once, near doubled fps, fixed trajectory shifting, made timewarp a bit less laggy, and cleaned up code a bit. V2.7-Added pause button. V2.8-Fixed the planet orbit system and made it way better V2.9-Fixed the direction calc block and added a black gradient to planet sprites, which creates a day/night cycle when combined with the planet pointing towards the sun as it orbits. V2.91-(yes ik its not 3.0, thats reserved for VAB update) Gave saturn a moon V2.92-*Hopefully* a small optimization to planet rendering and a scroll to zoom feature. V2.93-Made the camera seperate from the rocket, allowing for some camera features not previously possible. V2.94-Added a camera focus button that allows for switching the camera view to different planets or just the rocket. V2.95-MAJOR FIX to the orbital physics, which now behave properly.(for the most part) V2.96-Bigger planets V2.97-A lot of little changes, including a new direction indicator, slower moving planets, a photosensitivity warning, and a black hole(press 'e' and enter 8, ONLY works in TURBOWARP) V2.98-Added apoapsis and periapsis V2.99-Added major rework to the entire soi system, which boosted performance and made it better, added thrust slider with color V3.00-Added navball with prograde, retrograde, radial in, and radial out; x and y velocities with color for speed representation
Instructions
W or tap and hold to accelerate(rocket will point towards mouse/touch) ----------------------- TURBOWARP LINK-https://turbowarp.org/1321023124?hqpen&offscreen ----------------------- ~1200 blocks of code; gets laggy on low end devices, even with optimization. ----------------------- Note-Lots of glitches happen, and any suggestions are accepted. Highly suggest running on turbowarp with better pen mode. Mobile friendly! Hold down to thrust! The variable "traj length" is how long the trajectory line will be, longer will be more computationally expensive. I rebuilt this from the ground up, as the first one proved to be glitchy, unstable, and not well written. Things such as timewarp physics calculations, orbital paths, and more were fixed. W to apply thrust in direction Rocket points toward mouse Timewarp speeds up time
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
beat up lion.exe
by Lestat1025
(ALMOST) All Aux-Mythicals!
by cheesef0rdawrld
Beat up spueak my tom2
by jayjayy1809
大きさ変換鬼ごっこ(フライングカバオから逃げろ)
by sobatako
Numberblocks Band 1-1 Trillion remix
by keropie143
Universe Size Comparison
by VictorMarcus
Mixels: The "MIX"-ing Game V0.1 (Preview)
by AsherTheRemaker
BEAT UP SUPER WHY!! fixed remix remix-2
by matheusmaccamargo
I'm Blue // ft. Flipnote chance
by jkl24012014
Blox Fruits clicker
by hw_4l2024
AY Surviving Tornado Peak! [ Remix 23 54 Players remix
by miguelhauck
Beat Up Buttons (1)
by CanadaPS
Animal Stampede with Discovery Kids remix remix remix remix remix-3
by animalslover44
Talking Tom And Ben News (Remade)
by KhaleefSyahmie
Kick the Buddy remix
by BrickManSam123
大戦争ゲーム ver2.0
by brasiltoshi
Cool Platformer nature
by 945gg
BFB Your Way + Profily + Winner + Price Tag + Host Center
by GannerPr0
i created a pikmin game
by MATIXIN
[Touhou Script] Hakugyoku Arena
by JBen2014
Beat up Scratch Cat! (Suggest me a button!) remix-3
by hyd3ns33k
Onaf 4
by EndoBetacool2022
リアルタイム地震ビューアー v1.5.3 remix
by Kamara-ku
Beat Up Vivi! Reloaded
by JojosWorld32