#T h i n g

1 messages · Page 1 of 1 (latest)

native topaz
#

What are u using to code that

If you say scratch in going to shit

native topaz
#

N-no that's n-not possible...!

summer trellis
#

also I somehow did the gravity wrong and now

#

instead of being pulled towards the eart

#

it just yeets off into space

#

which is perfect

haughty dagger
#

Have fun doing collisions in Scratch

summer trellis
#

it's actually going to be really easy

haughty dagger
summer trellis
#

using the new system I've got for applying impulses

#

I'm not going to use the touching block btw

#

that's dogshit

haughty dagger
#

Now make it n-body

summer trellis
#

a wat

haughty dagger
#

N-body physics

#

Where you have many bodies with gravity and they all interact with one another

#

Like the universe we live in

summer trellis
#

oh yeah

#

I already did that

haughty dagger
#

Can I see your code

#

I'm curious

summer trellis
#

hang on

#

it's not in this yet cause I'm still adding the impulse thing

haughty dagger
#

I have the universal gravitational equation etched into my brain from making n-body sims a lot

summer trellis
#

I love how stupidly simple it is

haughty dagger
#

lol

#

f = g * m1 * m2 / d^2

summer trellis
#

okay I can't find it but basically it just has a list of points and their velocity and it does that for each

haughty dagger
#

Ye

#

Lot's of for loops involved in n-body sims xD

summer trellis
#

yea

#

also my scrolling code is wack

haughty dagger
#

N-body is super unstable though so I usually go for the patched conics approach

#

not very interesting but hey

summer trellis
#

so I had to rotate it around the center of the ship before rotating it around the camera then the positing and the oteeher thing ehatne brain

haughty dagger
#

And this is why I hate block coding