Sign in to follow this  

Flocking AI

This topic is 4219 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
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
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

This topic is 4219 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this