Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jul 9, 2009, 04:07 PM   #1
Duke Leto
macrumors regular
Join Date: Mar 2008
Gravity Simulation Beta

Alright, so I created a simple gravity simulation. By simple, I mean it has a good amount of features, but is not very user-friendly. (I am an introverted programmer, what do you expect!)

So here is the link to the new download: http://www.mediafire.com/?xyyw1zyvblw
(requires 10.5)

- add planets
- change velocities of planets
- zoom in/ zoom out
- move planets, change color
- draws paths of each planet
- graph (can change values of x & y axis)
- uses the Dormand-Prince tableau for an accurate simulation (Runge-Kutta)
- others
- ** new ** zoom with scroll bar

Known Issues:
- ** Fixed **If you add a planet after the simulation started, there is a chance it will crash (this will be fixed momentarily)
- No help file
- Graph does not show values (will be fixed by next week)
- ** Fixed **After pausing, the velocity arrows show up again in the wrong position (will be fixed soon, possibly by tomorrow)
- Simulation is slow if you are drawing lines for a while

Files in the download package:
- Gravita.app
- Solar Systems (Folder)

Each "Solar System" is a file that I pre-created. These show off the accuracies, inaccuracies, and abilities of Gravita. (My personal favorite is systemsOrbit.solar)

I am hoping that fellow developers in this community will have advice, comments, and questions. If you want some source code, you can ask me, but the code is messy and uncommented, (Sorry about my unhealthy coding habits), but somewhat follows MVC and KVC.

All the icons were made by myself except for the saturn file icon, which I will replace.

I know that it is unpolished, so questions and comments about my beta are very much appreciated.

Last edited by Duke Leto; Jul 10, 2009 at 11:53 AM.
Duke Leto is offline   0 Reply With Quote
Old Jul 9, 2009, 04:22 PM   #2
Tallest Skil
Join Date: Aug 2006
Location: 1 Geostationary Tower Plaza
First, it's awesome.

A few things:

How the heck do you zoom? Could you put zooming on the scroll ball?

Add the ability to choose the size of the body being created, instead of being random.

And what's the blurry planet for?
Tallest Skil is offline   0 Reply With Quote
Old Jul 9, 2009, 04:25 PM   #3
Duke Leto
Thread Starter
macrumors regular
Join Date: Mar 2008

This is exactly the kind of input I need.

THe blurry planet: change velocity tool (I tried to make a motion blur sorry about that) Click and drag to edit.

Zoom in: cmd down
Zoom out: cmd up

And yes, I will allow you to change the size, but right now you can change the radius using the "Starting Values" tab of the inspector.
(Make sure the planet is selected, it will have a white ring around it.)

Tomorrow, I will have an update with new features and bug fixes - I have already done a little, but it would be too cumbersome to re-upload and post after each new successful implementation of a feature.

P.S. if you have any comments at all, please post. I would love to hear input.

Last edited by Duke Leto; Jul 10, 2009 at 10:57 AM.
Duke Leto is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Anyone see Gravity? djtech42 Community Discussion 68 Mar 6, 2014 12:23 AM
Really want a car simulation game... MathBunny123 Mac Applications and Mac App Store 2 Dec 27, 2013 12:00 AM
What's the best simulation game on iOs/iPhone? Artifex2 iPhone and iPod touch Apps 0 Feb 9, 2013 07:00 AM
Best Simulation Games? preguntonontrac iPhone and iPod touch Apps 2 Jan 6, 2013 09:41 PM
Anyone into flight simulation? r.j.s Community Discussion 32 Jun 26, 2012 11:20 PM

Forum Jump

All times are GMT -5. The time now is 10:39 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC