Re: When is a neighbor a neighbor ?

jon klein <[email protected]>
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
On Nov 5, 2003, at 5:28 PM, Henrik Nørgaard Hansen wrote:

> Hej
>
> When you click on a bird in the "Swarm" demos, its neighbors is 
> connected using the "show-neighbor-lines".  But the floor is not 
> considered a neighbor.  How is that accomplished ?  In my "planets" 
> simulation the floor is always considered a neighbor (if it is within 
> the defined distance).  I can follow the considerations and flow in 
> Swarm, in regard to finding the neighborhood of "birds".  But that 
> doesn't change on the definition of neighborhood, does it ?

Neighbor checking uses the distance from the center-point of an object 
to determine whether it is a neighbor or not.  Because of this, the 
birds are often close to the floor plane, but not close enough to the 
center-point of the floor to be considered neighbors.

Neighbor checking is usually just used as a quick way to get a first 
list of nearby objects.  You'll generally have to then iterate through 
the neighbor list to further determine whether two objects should 
interact or not.

- jon klein

_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.