Partager via


GKGoal.GetGoalToCohere(GKAgent[], Single, Single) Méthode

Définition

Méthode d’usine pour produire un GKGoal comportement approprié pour le comportement de flocage, en restant à proximité d’autres agents (voir aussi GetGoalToSeparate(GKAgent[], Single, Single) et 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

Paramètres

agents
GKAgent[]
maxDistance
Single
maxAngle
Single

Retours

Attributs

S’applique à