What would happen if a second Sun randomly spawned in our solar system? Well clearly chaos according to my simulation.
So previously, I made a button that automatically sets a velocity so that one object orbits another object, allowing you to easily make planet-moon systems.
ㅤ
However, what if you wanted to create gravity systems where objects are similar masses, like binary stars, or something like the Pluto-Charon system where clearly they orbit a point outside of each other?
ㅤ
This is what I set out to implement in this devlog, other than fixing a bug in the spacetime curvature grid where it would jitter around.
ㅤ
So I’m gonna be honest here, I did basically get AI to do this part for me, that’s not to say I didn’t try at all because I really did. But it turns out this stuff is way outside of high school physics and goes into orbital mechanics.
ㅤ
I wrote a simple solution which I thought might work, but it didn’t quite.
ㅤ
So I tried to watch this video to understand how to do it, but couldn’t understand what kind of vector math he was doing. So I basically gave up and got Claude to do it.
ㅤ
Looking at Claude’s solution, it seems kind of simple in that it’s not using crazy long equations to do things, but at the same time, I don’t think I would have been able to come up with those on my own, so ig it was a good use of AI to speed things up.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.