T - Type of vector, either 2D or 3D, implementing the Vector interfacepublic abstract class GroupBehavior<T extends com.badlogic.gdx.math.Vector<T>> extends SteeringBehavior<T>
GroupBehavior is the base class for the steering behaviors that take into consideration the agents in the game world
that are within the immediate area of the owner. This immediate area is defined by a Proximity that is in charge of
finding and processing the owner's neighbors through the given Proximity.ProximityCallback.| Modifier and Type | Field and Description |
|---|---|
protected Proximity<T> |
proximity
The proximity decides which agents are considered neighbors.
|
enabled, limiter, owner| Constructor and Description |
|---|
GroupBehavior(Steerable<T> owner,
Proximity<T> proximity)
Creates a GroupBehavior for the specified owner and proximity.
|
| Modifier and Type | Method and Description |
|---|---|
Proximity<T> |
getProximity()
Returns the proximity of this group behavior
|
void |
setProximity(Proximity<T> proximity)
Sets the proximity of this group behavior
|
calculateRealSteering, calculateSteering, getActualLimiter, getLimiter, getOwner, isEnabled, newVector, setEnabled, setLimiter, setOwner