Jump to content
  • Advertisement
Sign in to follow this  
markblue777

Flocking AI

This topic is 4504 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all i am new to AI and i know a little about it but basically what i want to do is get one image to set to another images statick x and y co ordinates. but this is my problem how do i go about with the movement would i just use a swith statement to be like is current x inline with final x no then got move left 5 and check again (obviously that is not it but just a general idea). if you have any tut's on this it would be helpful regards mark

Share this post


Link to post
Share on other sites
Advertisement
You would do well to look up the flocking paper by Craig Reynolds, available online if you search for it. As with most non-trivial AI, it's not generally a case of "if X then do Y", but about taking measurements and adjusting output accordingly - in this case, measuring distances and adjusting motion vectors.

Share this post


Link to post
Share on other sites
If you're talking about Flocking algorithms in general you also might want to take a look at:

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

While not all strictly flocking, there are some great descriptions and examples there. Particularly all the little applets illustrating the concepts.

-me

Share this post


Link to post
Share on other sites
Quote:
Original post by Hanatarou
I actually had a class where we had to implement boid behavior in 2D and 3D space using OpenGL. It can get pretty interesting at times! Here is a link to the same class I took, but a more recent semester:

http://www.cs.umd.edu/class/spring2006/cmsc427/

Take a look at the sample programs.


The website seems to be down for some reason, but shouldn't be for long. Check on it in a day or two.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!