GKGoal.GetGoalToCohere(GKAgent[], Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Factory method to produce a GKGoal appropriate for flocking behavior, staying near other agents (see also GetGoalToSeparate(GKAgent[], Single, Single) and 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
Parameters
- agents
- GKAgent[]
- maxDistance
- Single
- maxAngle
- Single
Returns
- Attributes