Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding gravity into a Java applet

807603Jan 4 2008 — edited Jan 4 2008
Hey guys,

I have an array of 10,000 dots (ovals) on my screen, and I am trying to make a simple physics simulator, that simulates gravity between these dots. I would like them to interact.

I'm not really sure where to start, Im not sure if there is a Java method that does this, but anyhow, can someone please explain to me how i would go about doing somthing like this.

Thanks in advance!
Andrew
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2008
Added on Jan 4 2008
6 comments
172 views