Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+2)

Thanks for playing. I appreciate this! Here's the formula we used:

static func calculate_force(dir: Vector2, dist: float, pull_force: float, radius: float):
    var f = 1.0 - (dist / radius)
    return -dir * pull_force * f

I suppose it's not the same one you used but the effect is pretty similar.

We did aproximatly f = multiplier * planet_mass / distance. but the spirograph-looking orbits seem to occur for both of us and i think that's quite interesting :)