public class NTreeForces3D extends NTreeForces
The kind of forces exercising on a boid can be changed to either use a n-tree or not, or to account for other kind of forces or another force model. This is the default force system that matches the basic boid definition as defined by Craig Reynolds.
attraction, barycenter, countAtt, countRep, direction, repulsion| Constructor and Description |
|---|
NTreeForces3D(BoidParticle p) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
is3D() |
getNeighborhood, getNextPosition, getPosition, setPositionaddAttraction, addDirection, addRepulsion, compute, getDirection, isVisible, moveBarycenterpublic NTreeForces3D(BoidParticle p)
public boolean is3D()
is3D in class NTreeForcesCopyright © 2015. All rights reserved.