Written entirely in Java with zero dependencies running on Java 1.6 or higher.
Over 1,000 automated JUnit tests and Sandbox GUI application.
Getting started is easy with Javadocs, wiki, and more.
Open source and free to use in commercial and non-commercial applications.
Getting started is as simple as downloading the latest version of the library, adding it to your project, and then taking a look at the UsingGraphics2D and UsingJogl sample applications. Check out the samples for additional help.
Watch this 6 minute Quick Start Guide to see just how easy it is.
If you do get stuck though, take a look at the Documentation and Javadocs or start a topic on the forums.
Learn how to use dyn4j
View the latest Javadocs
Get help from the community
View the latest release notes
Quick Start Guide
This is a maintenance release to fix the issue where the a Joint removed from a World cannot be added back or to a different world due to an internal member not being cleared.
This release is primarily for a new collision shape called Link. This shape extends the existing Segment shape and provides for smooth sliding across chains of Links. There were some minor fixes and code clean up as well.
This is a maintenance release to fix a few critical bugs in the Polygon, Rectangle, and Segment classes for local rotations (see this post for details). This release also contains some small enhancements (a few new methods) to some of the joints and a complete rewrite of all the joint class javadoc documentation. The documentation Read more about Version 3.2.1[…]
The primary goals for this release were performance enhancements and API clean up. It took a lot longer than I had expected but I’m very happy with the results. Highlights include improvements in the performance of collision detection and ray casting operations and a much cleaner public API and more thorough javadoc comments. The API has been changed a Read more about Version 3.2.0[…]
Due to Google’s decision to drop Google Code, I’ve moved the project to GitHub. In truth, I’ve been contemplating this for a while now, but have had reservations about lost version history. I feel this will help others contribute bug fixes and allow them to create their own forks and branches easier than before. I Read more about dyn4j Moved to GitHub[…]
This is a maintenance release of dyn4j that includes a bug fix for a StackOverflowException thrown from the raycast(Ray, double, boolean, boolean, List) method. This release also includes some very minor performance tweaks. See the change detail in the release notes. The Sandbox app was updated to fix a bug in the Java code exporter (Rays Read more about Version 3.1.11[…]
This is a maintenance release of dyn4j that includes some major bug fixes. See the change detail in the release notes. The Sandbox app was not updated in this release.
This release of dyn4j includes some major bug fixes for the SweepLine class and other related convex decomposition classes. It also includes some enhancements to the World.detect methods. See the change detail in the release notes. A new release of the Sandbox was published for this release for a small bug fix.
This release of dyn4j is a maintenance release to fix a bug in the Vector2.distance(double,double) method. It also had a few methods added to the Body class to get BodyFixture(s) at a given world space point. See the change detail in the release notes. A new release of the Sandbox was published for this release due Read more about Version 3.1.8[…]