T - Type of vector, either 2D or 3D, implementing the Vector interfacepublic class InfiniteProximity<T extends com.badlogic.gdx.math.Vector<T>> extends ProximityBase<T>
InfiniteProximity is likely the simplest type of Proximity one can imagine. All the agents contained in the specified
list are considered neighbors of the owner, excluded the owner itself (if it is part of the list).Proximity.ProximityCallback<T extends com.badlogic.gdx.math.Vector<T>>agents, owner| Constructor and Description |
|---|
InfiniteProximity(Steerable<T> owner,
java.lang.Iterable<? extends Steerable<T>> agents)
Creates a
InfiniteProximity for the specified owner and list of agents. |
| Modifier and Type | Method and Description |
|---|---|
int |
findNeighbors(Proximity.ProximityCallback<T> callback)
Finds the agents that are within the immediate area of the owner.
|
getAgents, getOwner, setAgents, setOwnerpublic int findNeighbors(Proximity.ProximityCallback<T> callback)
ProximityreportNeighbor method of the specified callback.