motor2 development progress
March 21, 2008 on 11:28 pm | In Actionscript | 26 CommentsI just wanted to give you some updates on the recent motor2 development. I spent far too much time on alternative collision detection algorithms besides SAT and writing a fluid/soft-body solver which I will eventually integrate into the engine. So I’m way behind my schedule. Nevertheless I made some good progress over the last 2 weeks. The latest SVN revision now includes:
- highly optimized box-circle and poly-circle collision detection
- a framework for modeling forces, including some simple force generators (e.g. springs)
- testbed package with dozens of ready-to-compile test scenarios
- shape renderer example classes
- fast buoyancy solver
Many bugs were fixed, among other things it turned out that there was a nasty bug in the contact solver which zeroed out all friction impulses. Now the simulation behaves much better, especially for stacks :).
Some words about drawing the scene onto screen: you should look at the ShaperRenderer class to understand how to draw the shape of a rigid body in order to implement custom rendering classes. My implementation draws the modeling space into a display object and then translates and rotates it according to the world space. An alternative is to directly draw the world space after every time step.
Furthermore I started to document the API. For performance reasons almost all fields are defined as public (some of them shouldn’t be modified because they are only used internally by the engine) so I decided to only write javadocs for those methods that make sense for the user.
If you want to be kept up to date about the latest changes you can subscribe to the new motor2 development mailing list at http://groups.google.com/group/motor2.