GKGoal.GetGoalToCohere(GKAgent[], Single, Single) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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