Pages

Unity Gravity Sim

Made a very simple Gravity simulation between 2 bodies.

I just wanted to try out Unity 5. It feels really good to work with a full version doesn't it!

Was trying out attracting two objects, then googled here and there and found Force is inversely proportion to distance squared etc. Just put these into a scene and started playing around.

Then it suddenly hit me how slingshot and orbiting works. WTF.. so many years in school, never understood a damn thing!

Btw, Unity has WebGL deployment now - publishes a 30mb js file x_x