Skip to content
Steering behaviors implemented in Ruby
Find file
Latest commit 91bb6f9 lobo_tuerto Rearranging code a little bit
Failed to load latest commit information.
README.rdoc Max turn rate completed


Ruby steering behaviors

This is an implementation of the steering behaviors as seen in:

There is a basic app, with 5 behaviors implemented:

  • Seek

  • Flee

  • Arrive

  • Pursuit

  • Wander

More to come!


  • Gosu gem


This is a showcase of the different behaviors implemented. Right now I have 2 viewports, I will implement more as I have more steering behaviors.

One viewport has 4 agents, one will arrive to whichever point you pick with your mouse. One is pursuing and one is evading the last one, who's wandering around.

The other viewport has three wandering vehicles.

Press D to hide the text. Esc to leave the demo.

What's new

Finally implemented the max turn rate restriction. No more crazy-spinning for my little agents. :) I also improved how to show debug data. Now the targets are color-related (targets for arriving at a location, the wandering circle, predicted positions [for pursuit and evading]).

Next plans

I'm between adding flocking behaviors and implement a bit of my next game code. That's because I already have enough steering behaviors to implement the game logic. Hmmm, what should I do? :)

Something went wrong with that request. Please try again.