GKGoal.GetGoalToSeparate(GKAgent[], Single, Single) Method

Definition

Factory method to produce a GKGoal appropriate for flocking behavior, avoiding other agents (see also GetGoalToCohere(GKAgent[], Single, Single) and GetGoalToAlign(GKAgent[], Single, Single)).

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

Parameters

agents
GKAgent[]
maxDistance
Single
maxAngle
Single

Returns

Attributes

Applies to