Page 1 of 1

Pursuit algorithm question

PostPosted: Jul 25, 2003 @ 5:10am
by fzammetti

PostPosted: Jul 25, 2003 @ 1:11pm
by Pam
This is probably overkill for what you want, but check out Boids here,

The basic idea being around Steering behavours. You have a behaviour where the zombies steer toward a common goal. What you also need is a behaviour where the zombies steer to avoid eachother.

One way is to check the position a zombie is about to move into and see if there is already a zombie there, or within some proximity. If there is, either don't move at all, or pick a new position in the same general direction, i.e. if x>y then add/subtract a random value to y and repeat the check.

Pam

PostPosted: Jul 25, 2003 @ 2:01pm
by fzammetti

PostPosted: Jul 25, 2003 @ 2:46pm
by Pam

PostPosted: Jul 25, 2003 @ 4:46pm
by egarayblas

PostPosted: Jul 25, 2003 @ 4:49pm
by fzammetti