Unfinished Gravity sandbox

Unfinished Gravity sandbox

by Frenchie14
Report a bug
Flag Game
โญ Top
Bit Heroes
โญ Top
Bloons Monkey City
โญ Top
Epic Battle Fantasy 4
โญ Top
Bloons TD 5
โญ Top
Learn to Fly 2
โญ Top
SAS: Zombie Assault 4
โญ Top
Kingdom Rush
๐Ÿ”ฅ Hot
NGU IDLE
โญ Top
Mutilate-a-Doll 2
โญ Top
The King's League: Odyssey
โญ Top
The Enchanted Cave 2
โญ Top
Escape Game - Computer Office Escape
โญ Top
Kingdom Rush Frontiers
โญ Top
Swords and Souls
โญ Top
Retro Bowl
โญ Top
Incremancer
โญ Top
UnpuzzleX
โญ Top
Epic Battle Fantasy 5
โญ Top
Fleeing the Complex
โญ Top
Learn to Fly 3
Loading ad...

Unfinished Gravity sandbox

Rating:
2.6
Released: August 18, 2011
Last updated: March 24, 2012
Developer: Frenchie14

Tags for Unfinished Gravity sandbox

Description

A little gravity sandbox I work on from time to time. Add any suggestions in the comments below!

How to Play

P : pause
While paused drag arrows to alter velocity
Use buttons at the bottom to toggle physics
Space : spawn "planet"
Enter : clear screen

Developer Updates

Aug 18, 2011 6:13pm

Go play my other (better) game 4-Way at http://www.kongregate.com/games/Frenchie14/4-way

Update V 1.1:
โ€“ Updated collision physics
โ€“ Added velocity arrows to pause screen. You can drag them around to alter a planetโ€™s velocity!
โ€“ Removed some hot keys and added buttons instead

Update V 1.2:
โ€“ Added a repel toggle. You can now flip the effect of gravity!
โ€“ Added little tracers for a nice visual effect. You can toggle them with the โ€œtrailsโ€ button
โ€“ Graphics overhaul, thanks NASA!
โ€“ Small bug fix

Comments

0/1000
ultimategamer23 avatar

ultimategamer23

Sep. 29, 2011

16
0

Dude finish the game

Frenchie14
Frenchie14 Developer

I work on it from time to time. The momentum collision physics work now. My biggest problem is getting the planets to not go inside one another. In the real world this is accomplished by something called the normal force. In flash this is accomplished by......... I'm trying to find out XD

TopMaster360 avatar

TopMaster360

Aug. 19, 2011

17
1

I don't see how this uses real gravity physics. I looks to me as though you've just got a button which launches balls around the stage.

Frenchie14
Frenchie14 Developer

Every frame each ball compares its position to all of the other balls on stage and calculates the force of gravity on that ball using F = Gmm/r^2 (Newtonian gravity). It calculates the x and y forces of gravity from each ball then adds them together for the additive vector force result which is then divided by the planet's mass to get it's acceleration. Then it uses Kinematics (physics of movement) to calculate its speed and adds it to its current position. This is why spawning tons of planets will make your computer lag.

dachosenwon avatar

dachosenwon

Aug. 18, 2011

10
1

This could be a pretty decent game :/

spaceface30115 avatar

spaceface30115

Apr. 19, 2013

3
0

I agree with top master 360. All that makes it seem like gravity physics is the background. Add real gravity physics and I'll rate it with *****. I haven't rated yet of course. Please add gravity physics. End of coment.

tiange1 avatar

tiange1

Jan. 12, 2012

3
0

mite be better if YOU FINISH THE GAME and make the planits able to unstick

โญ Top
The Fancy Pants Adventures
โญ Top
rotaZion
Float
The Invasion of the Halloween-Monsters
โญ Top
Four Second Frenzy
โญ Top
Streamline
โญ Top
Chaos Faction
โญ Top
Papa Louie: When Pizzas Attack! - Kongregate Version
โญ Top
Dragon Fist 3: Age of the Warrior
Parachute Retrospect