Steering behaviors.  We need a Java version!

I have tried to get a Java version of Craig Reynolds C++ based steering behaviors code but have not had much luck.

I wrote Craig Reynolds and he passed me along to another person at Fuze3D who has not replied (BTW, Mr. Reynolds would like to have the ported code too it seems).

So does anyone know of a Java port for steering behaviors like OpenSteer?

It would seem almost essential for non trivial Java based games to use steering in some respect. Surely someone has this done or is close to doing it and making it available to the open source community!

It looks interesting for a project I’m working on.

I did find a series of applets that demonstrate the behaviours at this location, so someone has already done the work.

http://www.red3d.com/cwr/steer/

Andy.

Yes, that is Craig’s site you are referring to.

The only problem is, the applet code was done while Craig was working for another company, and that company hasn’t (and it doesn’t seem likely it will) released the source to those applets!

Craig sent me to another place (Fuze3D) who has supposedly made the conversion, but they never responded to me (hmmnm…).

I cannot believe that someone hasn’t done this already and made the code available to the open source community.

This is something really needed for AI apps of many kinds!

Just download the classes by hand and de-compile the applets with an application called Jad, and the source code is there for you to see.

Andy.

http://kpdus.tripod.com/jad.html

The fuze3d port of opensteer works fine:

http://www.mojomonkeycoding.com/jmeforum/viewtopic.php?t=1146

The source code for the Fuze3D port can be downloaded from here. It’s in Fuze3D-0.2.jar.

Craigs work is old hat now.

It has been improved and re-implemented from scratch many times over, and you really should just be able to make your own by now.

One of the GPG books had a more useful version where they compressed the whole thing into a single pass using a carefully attenuating fn yet achieved similar (practically identical) results.

So…personally I’d go for that: just find a mathematical fn which provides the desired behaviour and do it in one pass.

PS: I’ve done a java boids before but it was with a sofware renderer that I’m embarassed to reveal I wrote :(. Don’t think it would help.

Hi,

you can find a java version based on Reynolds work at
http://www.steeringbehaviors.de/

Good luck

great, thanks!! I was also looking for that :slight_smile: