Mouse-drawing boxes in gwt-phys2d; Google Code repository

I’ve added in support for drawing your own boxes (as many as you want!) into gwt-phys2d. It’s fun to try to do things like create a long see-saw shape and try to balance boxes on both sides. Check it out: http://gwt-phys2d.appspot.com/

If you try drawing enough boxes, you’ll find that performance doesn’t scale all too well (or at least it doesn’t on my netbook). I watched memory in the task manager and saw it repeatedly spike and fall back down, suggesting that it’s definitely the garbage collector which is eating up much of the time. I still haven’t had a chance to rewrite the phys2d code to stop creating so many new objects (esp. collision Arbiters) every frame, but I imagine that’ll improve performance considerably.

I’ve also created a Google Code and subversion repository for the project:  http://code.google.com/p/gwt-phys2d/

If you’re interested in contributing let me know, and I’ll be happy to add you. Here’s a screen capture of the current version:

This entry was posted in Uncategorized, gwt-phys2d and tagged . Bookmark the permalink.

2 Responses to Mouse-drawing boxes in gwt-phys2d; Google Code repository

  1. Helene says:

    Calling all cars, cilalng all cars, we’re ready to make a deal.

  2. Piccaza says:

    Hello,
    I am new-bee to gwt phys2d lib. I am trying to develop simple physical demonstrations using this library. I don’t know hoe to set style for shapes created via phys2d, like Box, Static Body, Circles etc.
    If you are considering this comment,
    I would like to know how to add some images for each shapes and change it wrt the interaction with World,Time, Changes.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>