2D Planetary Gravity Physics + Spaceship

Hey,

I just submitted a package that includes a spaceship script (full source code) for simulating 2D planetary gravity physics + and example scene to show how it works (see webplayer at the bottom).

Touch the screen with your mouse (or your finger on iOS/Android) to navigate the spaceship through the gravity fields of the surrounding planets.

Play the included example scene as Unity3d Webplayer: CLICK HERE

You can also get it on polyload.com … if you can’t wait for the AssetStore :slight_smile:
The price will be $15 on the AssetStore.

Every feedback is welcome!
Cheers
e

Here is a screenshot of the webplayer:

There seems to be a lot of demand for planetary gravity scripts. Hopefully this fits the bill. Good luck!

Thanks renman
I hope there is a lot of demand. :wink:

The package just went live!

Link to the AssetStore:

Looks awesome. I’m very interested, gravity physics are a pain. One question have you made it using Javascript?

Just seen it contains a file with the extension .cs so assuming it’s C#. it’s a shame this is exactly what I need. maybe I’ll give C# a shot.

Hey jammy!
Thanks for your interest.
Yes it’s in C# but it’s not a huge script, since I optimized all the maths a lot - it should be easy to port to javascript.