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):
- AABB collision detection
- Scrolling with a viewport to determine what’s on-screen
- 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!
- Download Crash source
Related posts:
Hello, my name is Alex Schearer. I grew up in New York and currently live in Seattle. 