Condividi tramite


GKGoal.GetGoalToCohere(GKAgent[], Single, Single) Metodo

Definizione

Metodo factory per produrre un GKGoal comportamento appropriato per il comportamento di flocking, rimanendo vicino ad altri agenti (vedere anche GetGoalToSeparate(GKAgent[], Single, Single) e GetGoalToAlign(GKAgent[], Single, Single)).

[Foundation.Export("goalToCohereWithAgents:maxDistance:maxAngle:")]
public static GameplayKit.GKGoal GetGoalToCohere (GameplayKit.GKAgent[] agents, float maxDistance, float maxAngle);
static member GetGoalToCohere : GameplayKit.GKAgent[] * single * single -> GameplayKit.GKGoal

Parametri

agents
GKAgent[]
maxDistance
Single
maxAngle
Single

Restituisce

Attributi

Si applica a