Added: 2 years ago
From: OneRadVideo
Views: 10,455
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (10)

Sign In or Sign Up now to post a comment!
  • What's up with the creepy ass music щ(゚Д゚щ)?

  • Your program crashes sometimes. That's because the "living" ArrayList is being accessed from 2 different threads at the same time. A simple fix for this is to replace all occurences of this line in MoveEngine.java

    for (int i = 0; i < Main.living.size(); i++) {

    with

    int size = Main.living.size();

    for (int i = 0; i < size; i++) {

    But that's not a very nice solution. Why did you use different threads in the first place? That's not necessary.

  • Could you link me to a tutorial on how to make the equations for changing the x and y value of the ball? I'm trying to make a simple 1-ball gravity simulator but I don't know how to write the correct equations or how to do the collision detection.

  • i did a similar program but when i put a lot of balls the pressure makes them over lape each other, how did u fix that

  • @Hectorfloresish Check out the project's homepage on sourceforge, and scroll down to the "Resolving collisions" section. The link is in the video description!

  • Awesome, could you please upload the source somewhere so we can view it?

  • I think I will put the source up somewhere, but I want to get some other things cleaned up about the code first.

  • Thanks, It will be much appreciated.

  • @Ty5479 Visit my site (see video info) and click "Projects". I've got info and source up.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more