Hi guys, just to let you know that I've started to code a little app that implements steering behaviors as seen in: www.red3d.com/cwr/steer/
I'm planning to use them in my next mini game (a missile commander clone).
You can try the demo and tell me what you think. It implements a number of things, although it's in a very basic state (worked on it this weekend).
There is a basic app, with 4 behaviors implemented:
More to come, probably next week, if I can make myself some time. :D
Although I think I will refactor it a bit before implementing more stuff.
There is a Viewport class to that I created so I could play with my vehicles on a very large space. Think of it as a sandbox that you can configure to an arbitrary size. And right now it wraps around, treating the viewport as a toroid.
For example, you can have a 4000x3000 virtual space inside a 800x600 viewport inside your real 1024x768 screen.
I implemented this because I'm planning to showcase the behaviors each on a different viewport, but all in the same screen at once.
I think it might be used to implement a minimap, maybe?
There are 3 agents in the demo app.
Use your mouse, clicking on the screen will set a mark.
The green agent will flee from it.
The white agent will try to arrive to it.
The red one will pursue the white one, predicting it's future position (little white crosshair in front of white agent)
Press D to hide the text. Esc to leave the demo.
Here is the link to github:http://github.com/lobo-tuerto/ruby_steering_behaviors/tree/master