Java port of a simple, open source, 2D impulse based physics engine for educational use.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 18 commits ahead, 2 commits behind RandyGaul:master.
ClickerMonkey Merge pull request #1 from pieter3457/patch-1
fix minor friction calculation bug
Latest commit 28ebc82 Jun 30, 2015

README.md

Stable

Java port of Impulse Engine Created by Philip Diffenderfer

The Impulse Engine is a small 2D physics library written in Java and has no third-party-library dependencies.

This port is meant to be nearly an exact port, additional comments and functions have been added to the vector (Vec2) and matrix (Mat2) classes. The port does needlessly instantiate Vec2 and Mat2 objects (opposed to using a cache of these objects) but no negative effects have been measured.

This project was created and developed in Eclipse, the formatter is included.

In the test folder, there is a simple game engine that uses Java2D in order to show how the library works (taken from my blog - http://gameprogblog.com). To run the demo download jimpulse-demo.jar and run it.

This has been tested with Java 1.6 and 1.7.

Screenshot of TestImpulseEngine

 photo ImpulseEngine_zps05c537c9.png