Crash for Flash: A Physics Engine

Recently I started working on Null Op again. One of the new things I wanted to add to the game was steering behaviors for the viruses. In order to implement them, though, I need some way to find a virus’ neighbors, check for nearby obstacles, etc. To accomplish this I decided I’d use the Crash library I’d written for Java. Naturally this meant I needed to port it to Flash, and now that it’s done I thought I’d share it with you, too.

First off, here’s a couple test cases I’ve created to show off the library. Feel free to play around with them and see what it can do.

So what can you do with this library. Here are a few things I did with it (most recently in Fluster):

  1. AABB collision detection
  2. Scrolling with a viewport to determine what’s on-screen
  3. Find nearby objects

Anyway, I hope you find the demo interesting and the library useful. Now it’s time to start implementing leader following. As always let me know if you have any questions, feature requests, or comments!

Related Posts

Post a Comment

Your email is never published nor shared. 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>