Steering Behaviors?

Posted By: Frederick_Lim

Steering Behaviors? - 07/14/08 05:33

From this website, I found the open source steering behaviors in C++.

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

The Java applets are really cool but unfortunately the author does not offer the source code.

Is there anyone convert the code to c-scipt/lite-C before?

Otherwise I must learn C++ and OpenGL in order to learn the code from OpenSteer project.

There are a lot of information cover path finding in AUM and forum, but it is almost none in steering behavior.

I need to learn this to continue my project, any advise is welcome.
Posted By: Machinery_Frank

Re: Steering Behaviors? - 07/14/08 12:42

Just buy this book:
http://www.wordware.com/files/ai/

You get knowledge about path-finding, steering, autonomous agents, finite state machines and more. The book starts with very simple math and physics lessons. The examples are written in object oriented C++ with all the latest tricks like singletons, template classes or virtual classes.

You can learn a lot from this book.
Posted By: Oxy

Re: Steering Behaviors? - 07/14/08 21:53

The things in the java app are actually quite simple to do.

You just need to use several traces in predefined direction, and
give the entity a moveforce oposing them, when the traces detect a wall.
The closer the wall is, the more force (up to 100% counterforce when at the wall).

The trick is to move then entity before the "normal" collision detection itself forces the entity to stop.

This way entites can easily avoid obstacles and other entities,
and get back onto the path.

The path itself can then be more rough (the positions to
follow as given by the pathfinding).

You can use the intenseX pathfinding for example for the general path to follow,
but you need to make a more sleek obstacle avoidance,
as (given the Demo) IntenseX does not perform
very well in that point.


No rocket science. But still rarely seen in the projects here.
Posted By: Altimeter

Re: Steering Behaviors? - 07/15/08 17:28

yes, this book is worth its money in gold. But some C++ understanding is necessary if you want to use the examples in your own project. The author makes extensive use of classes.
Posted By: Frederick_Lim

Re: Steering Behaviors? - 07/16/08 02:20

Thanks for the suggestion.

I think it is not avoidable use C++ and OpenGL to learn AI...I think I will look at OpenSteer project first, it also extensive use of classes, and it cost nothing smile It is open source, and it would be awesome if Conitec integrate it in GameStudio.
© 2024 lite-C Forums