Search found 2 matches

by jellysnake
Mon Aug 04, 2014 1:27 pm
Forum: Games and Creations
Topic: Gravity
Replies: 2
Views: 1694

Re: Gravity

1. Bug is fixed. Thanks, thought I had fixed that. 2. I implemented the gravity using this line of code: varBalls[w][1]:applyForce((varPlanets[q][1]:getX()-varBalls[w][1]:getX())*(varPlanets[q][2]:getRadius()/10), (varPlanets[q][1]:getY()-varBalls[w][1]:getY())*(varPlanets[q][2]:getRadius()/10)) or ...
by jellysnake
Mon Aug 04, 2014 8:53 am
Forum: Games and Creations
Topic: Gravity
Replies: 2
Views: 1694

Gravity

So I made a little prototype to test out some Gravity related code, along with a few other things, and then it kinda got a little carried away with unneeded options and stuff. So yeah, what the hell may as well share it. Have fun, all instructions are shown when you run the file. Gravity.love p.s. A...