public class NTreeForces extends BoidForces
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 |
|---|
NTreeForces(BoidParticle p) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Boid> |
getNeighborhood() |
org.miv.pherd.geom.Point3 |
getNextPosition() |
org.miv.pherd.geom.Point3 |
getPosition() |
boolean |
is3D() |
void |
setPosition(double x,
double y,
double z) |
addAttraction, addDirection, addRepulsion, compute, getDirection, isVisible, moveBarycenterpublic NTreeForces(BoidParticle p)
public org.miv.pherd.geom.Point3 getPosition()
getPosition in class BoidForcespublic void setPosition(double x,
double y,
double z)
setPosition in class BoidForcespublic org.miv.pherd.geom.Point3 getNextPosition()
getNextPosition in class BoidForcespublic Collection<Boid> getNeighborhood()
getNeighborhood in class BoidForcespublic boolean is3D()
is3D in class BoidForcesCopyright © 2015. All rights reserved.