Classes

Hi all,

I’m trying write a gravity simulation in jme, and I want the user to be able to create planets via a UI, in which they can specify the name, radius, mass ect of the planet and it will be placed in the scene. Once all the masses are in the scene, I am to calculate the gravity and show how masses move through the simulated gravitational fields.

So firstly, I’m trying to make a planet class, do I define it in the simpleinitapp? or before it?
I’ll worry about the UI once I’ve got the mechanics working
I have the theory of the simulation down fine, but I’m still getting used to java :slight_smile:

Thanks for the help!